[R-SIG-Mac] uninstalling gcc-4.2 (Apple build 5666.3) with GNU Fortran 4.2.4 for Mac OS X 10.7 (Lion)
Federico Calboli
f.calboli at imperial.ac.uk
Fri Apr 5 17:20:32 CEST 2013
On 5 Apr 2013, at 15:13, Simon Urbanek <simon.urbanek at r-project.org> wrote:
>
> On Apr 5, 2013, at 5:16 AM, Federico Calboli <f.calboli at imperial.ac.uk> wrote:
>
>> Hi All,
>>
>> is there an intelligent way of uninstalling the stuff that comes with gcc-4.2 (Apple build 5666.3) with GNU Fortran 4.2.4 for Mac OS X 10.7 (Lion) without accidentally removing something else? I could use pkgutil to fish out all the files and remove them by hand (my bash foo is not foo enough to do it automagically and without ever deleting other stuff by mistake) but it is a bit of a faff.
>>
>
> From Apple there is pkgutil --unlink for uninstallation, but I don't know if it was introduced in 10.7 or 10.8. There are other 3rd party tools that do the same thing (or more), but I have not used any of those myself.
pkgutil --unlink does not exist anymore since 10.7. I guess it caused way too many catastrophic errors.
>
>
>> The old standalone gfortran had a uninstall script that was pretty handy…
>>
>
> It was pretty much just
> pkgutil --files xxx.pkg | sed 's:^:rm -f /:' | sort -r
> plus dir tweaks anyway, so it's really what you describe above.
Thanks, I'll see what I can cook up. Before I do something terminally stupid, does the package *overwrite* anything or are all the files listed by pkgutil --files org.r-project.gcc-42.darwin11.pkg safe to remove?
BW
Federico
>
> Cheers,
> Simon
>
>
>
More information about the R-SIG-Mac
mailing list