[R-SIG-Mac] uninstalling gcc-4.2 (Apple build 5666.3) with GNU Fortran 4.2.4 for Mac OS X 10.7 (Lion)

Simon Urbanek simon.urbanek at r-project.org
Fri Apr 5 16:13:22 CEST 2013


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.


> 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.

Cheers,
Simon



More information about the R-SIG-Mac mailing list