On Apr 5, 2013, at 8:20 AM, Federico Calboli <[email protected]> wrote:
> On 5 Apr 2013, at 15:13, Simon Urbanek <[email protected]> wrote: > >> >> On Apr 5, 2013, at 5:16 AM, Federico Calboli <[email protected]> >> 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. > Ah, damn :) >>> 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? > Yes, it only overwrites gcc-4.2 from old Xcode, but nothing from the system. Cheers, Simon > BW > > Federico > > > > > >> >> Cheers, >> Simon >> >> >> > > _______________________________________________ R-SIG-Mac mailing list [email protected] https://stat.ethz.ch/mailman/listinfo/r-sig-mac
