1

Is there an easy way (without completely formatting the disc) to clean all the files in the system folders like bin etc and just leave the needed ones? Different pythons installations like anaconda and playing around with brew or macports left a lot of unneeded files and different versions of different libraries.

Would a repair installation do this?

1
  • It wont touch your files, only repair os x files. – Ruskes Jan 20 '15 at 19:49
1

Macports and Fink are well behaved and put all their stuff in /opt and /sw respectively. Delete those folders and you're done.

Other packages like to use /usr/local, the unix standard for, well, local only installations.

If something is being messy and putting files in */bin, /System, /Library etc. your options are to manually remove things or reinstall the system

1
  • Macports can have other traces (lots of other traces). See Uninstalling MacPorts, which I believe may not be accurate as to receipts which as of 10.8 are in a database, requiring resorting to using pkgutil, which can pkgutil --pkgs=org.macports.\* and forget `them. See the pkgutil man page. You'll find you are in rich Macports receipt environment. – user90735 Jan 21 '15 at 0:59
0

Yes, reinstalling OS X will replace all system folders with their default state, leaving all of your files in your home directory alone.

1
  • However this won't remove macports, homebrew or anaconda – mmmmmm Jan 20 '15 at 20:58

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .