Skip to content

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

4 messages · Federico Calboli, Simon Urbanek

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

The old standalone gfortran had a uninstall script that was pretty handy?

BW

F
#
On Apr 5, 2013, at 5:16 AM, Federico Calboli <f.calboli at imperial.ac.uk> wrote:

            
#
On 5 Apr 2013, at 15:13, Simon Urbanek <simon.urbanek at r-project.org> wrote:

            
pkgutil --unlink does not exist anymore since 10.7.  I guess it caused way too many catastrophic errors.
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
#
On Apr 5, 2013, at 8:20 AM, Federico Calboli <f.calboli at imperial.ac.uk> wrote:

            
Ah, damn :)
Yes, it only overwrites gcc-4.2 from old Xcode, but nothing from the system.

Cheers,
Simon