Which command should I ran to delete all old port versions, delete downloaded files, temp files created duruing build and all other stuff which I don't need when I am sure that updated version works fine? I got suggestion to use port clean --all all, but it tries to clean ports I don't have, though I tried port clean --all installed, but it did not delete old inactive versions, then port -u uninstall, but it stucked saying that py25-nose (which is active) depends on py25-setuptools (which is inactive).

link|improve this question

62% accept rate
feedback

2 Answers

up vote 4 down vote accepted

The suggestions you received cover what you're after: port clean --all all and sudo port -f uninstall installed.

If you can't wait for the clean one to run in the background, there are a few commands you can run manually and faster.

Remove leftover build files (this is done automatically by default):

sudo rm -rf /opt/local/var/macports/build/*

Remove download files:

sudo rm -rf /opt/local/var/macports/distfiles/*

Remove archives (these aren't created by default):

sudo rm -rf /opt/local/var/macports/packages/*

link|improve this answer
What about deleting inactive ports taking into account problem with py25-nose which I described? – tig Jul 20 '10 at 22:04
1  
port -f uninstall inactive – Nerdling Jul 21 '10 at 10:42
Updated to add it since you're after two separate things. – Nerdling Jul 22 '10 at 0:33
feedback

"port uninstall inactive" is the way to go.

link|improve this answer
Still complains about py25-nose depending on py25-setuptools – tig Jul 20 '10 at 21:50
1  
"port -f uninstall inactive" will force this behavior to be overridden. – Mijndert Stuij Jul 21 '10 at 6:55
1  
@tig This is a bug with the old registry format and is fixed when using the sqlite registry introduced with 1.9. The announce for 1.9.0 has instructions how to switch: lists.macosforge.org/pipermail/macports-announce/2010-June/… – Raim Sep 5 '10 at 23:54
@Raim: Thank you very much! leaves pseudo name will be of a great help for me! – tig Sep 6 '10 at 21:20
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.