How to keep MacPorts as slim as possible?
Dear list, how do I keep my MacPorts installation as slim as possible? I know of this: Trashing inactive ports/versions after an upgrade or any time by way of
sudo port -f uninstall inactive
Now from Fink I know this
fink cleanup which is being described to "reclaim disk space used by temporary or obsolete files". Is there something similar for MacPorts?
Are there any other ways? I'd suggest to have some web site up to answer questions like this, preferably on http://www.macports.org/ . Or is it there and I simply missed it? Cheers, Thorsten.
Citando Thorsten Zörner :
Dear list,
how do I keep my MacPorts installation as slim as possible?
I know of this: Trashing inactive ports/versions after an upgrade or any time by way of
sudo port -f uninstall inactive
Now from Fink I know this
fink cleanup which is being described to "reclaim disk space used by temporary or obsolete files". Is there something similar for MacPorts?
When some install don't complete, you can end up with files stuck in /opt/local/var/macports/build. To suppress them, you can either rm -fr * in this directory, either 'port clean --work all'. If your macports is set to build and keep packages (archive mode), you may want to delete them (they should be located in /opt/local/var/macports/package/Your_system/Your_Arch/). Also you may want to not keep distfiles which are the source fetched by macports to build things -> port clean --dist installed. Note that 'all' may not be the best keyword to use, but I don't know of a better word for things that you tried to build but may not be installed.
Are there any other ways?
I'd suggest to have some web site up to answer questions like this, preferably on http://www.macports.org/ . Or is it there and I simply missed it?
The infos that I give here can be inferred from http://trac.macosforge.org/projects/macports/wiki/FAQ#Whatarethefoldersinpre... Emmanuel
On Nov 20, 2007, at 9:54 AM, Thorsten Zörner wrote:
Dear list,
how do I keep my MacPorts installation as slim as possible?
I know of this: Trashing inactive ports/versions after an upgrade or any time by way of
sudo port -f uninstall inactive
Now from Fink I know this
fink cleanup which is being described to "reclaim disk space used by temporary or obsolete files". Is there something similar for MacPorts?
Are there any other ways?
I'd suggest to have some web site up to answer questions like this, preferably on http://www.macports.org/ . Or is it there and I simply missed it?
Cheers, Thorsten.
Hi Thorsten sudo port clean all will remove build directories of failed installations that may be hanging around. see all man port for more info on "clean". IMHO its a good idea to do a sudo port clean foo if the installation of "foo" fails. William Davis frstanATbellsouthDOTnet Mac OS X.5.1 Darwin 9.1.0 Xquartz-1.2a11 Mac Mini Intel Duo @ 1.86 GHz Mundus vult decepi, ego non
participants (3)
-
Emmanuel Hainry
-
Thorsten Zörner
-
William Davis