58
42
Which command should I run to
- delete all old port versions
- delete downloaded files
- temp files created during build
- all other stuff which I don't need when I am sure that updated version works fine
I got a 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 got stuck saying that py25-nose
(which is active) depends on py25-setuptools
(which is inactive).
3
I have 1.8 GiB of .tbz2 archives in /opt/local/var/macports/software surely they can go... according to http://apple.stackexchange.com/questions/64074/macports-software-clean-up-opt-local-var-macports-software they can be deleted
– Orwellophile – 2014-10-15T13:05:52.863// , I get the following problem when I attempt this:
$ sudo port -f uninstall inactive sudo: cannot get working directory error getting working directory name: no such file or directory while executing "pwd" invoked from within "set current_portdir [pwd]" (file "/opt/local/bin/port" line 5260)
– Nathan Basanese – 2015-11-30T17:51:01.283// , Hold on, problem solved. I just had to close the terminal that gave me that error. Apparently these commands mess with the environment variables, or something. – Nathan Basanese – 2015-11-30T17:52:39.497
What about deleting inactive ports taking into account problem with py25-nose which I described? – tig – 2010-07-20T22:04:43.707
1port -f uninstall inactive – Jeremy L – 2010-07-21T10:42:43.890
Updated to add it since you're after two separate things. – Jeremy L – 2010-07-22T00:33:08.227
Thanks! When I did a macports upgrade it started downloading about 15 GiB of tex stuff I didn't want. I was panicking about how to remove the crap. Thank you! – Wyatt8740 – 2014-01-29T05:09:08.203