Removing out-of-date packages
I tend to upgrade by doing: sudo port sync sudo port upgrade outdated I've noticed that I'm building up a lot of old versions of packages, for example in software/ghc I have both 6.6_2 and 6.6_1. Is there a simple way of cleaning out old versions of packages that I've missed?
Le 07-02-01 à 05:07, Chris Jefferson a écrit :
I tend to upgrade by doing:
sudo port sync sudo port upgrade outdated
I've noticed that I'm building up a lot of old versions of packages, for example in software/ghc I have both 6.6_2 and 6.6_1. Is there a simple way of cleaning out old versions of packages that I've missed?
sudo port uninstall inactive yves
Hello, thank you. I get the following error message: ~$ sudo port uninstall inactive ---> Unable to uninstall apr 1.2.7_0, the following ports depend on it: ---> apr-util ---> subversion ---> apr-util ---> subversion ---> apr-util Error: port uninstall failed: Please uninstall the ports that depend on apr first.
On Feb 1, 2007, at 7:57 AM, Chris Jefferson wrote:
Hello, thank you.
I get the following error message:
~$ sudo port uninstall inactive ---> Unable to uninstall apr 1.2.7_0, the following ports depend on it: ---> apr-util ---> subversion ---> apr-util ---> subversion ---> apr-util Error: port uninstall failed: Please uninstall the ports that depend on apr first.
sudo port -f uninstall inactive -- Daniel J. Luke +========================================================+ | *---------------- dluke@geeklair.net ----------------* | | *-------------- http://www.geeklair.net -------------* | +========================================================+ | Opinions expressed are mine and do not necessarily | | reflect the opinions of my employer. | +========================================================+
On Feb 1, 2007, at 2:54 PM, Daniel J. Luke wrote:
On Feb 1, 2007, at 7:57 AM, Chris Jefferson wrote:
Hello, thank you.
I get the following error message:
~$ sudo port uninstall inactive ---> Unable to uninstall apr 1.2.7_0, the following ports depend on it: ---> apr-util ---> subversion ---> apr-util ---> subversion ---> apr-util Error: port uninstall failed: Please uninstall the ports that depend on apr first.
sudo port -f uninstall inactive
"inactive" is somewhat broken, i believe. (that's why i wouldn't recommend using "sudo port -f uninstall inactive" but a "port uninstall inactive" first to make sure the right things are uninstalled. e.g. i had optipng 0.5.4, upgraded to 0.5.5. so 0.5.4 is inactive, 0.5.5 is active "port list inactive" lists optipng 0.5.5 "(sudo) port uninstall inactive" uninstalls optipng 0.5.5 also, "port list inactive" appears to display every single port there is (yes even those you don't have installed) if you don't have any inactive ports. Elias Pipping
I just talked to pipping on the IRC channel and he said trying `sudo port uninstall inactive` worked for him correctly when he tried again. Incidentally, `port list` is always going to show the current version of the port, regardless of what you have installed. Try using `port echo inactive` if you want to see your inactive ports. Alternately you could use `port installed inactive`, though that's kinda redundant as anything in the inactive list is known to be installed. And yes, if the inactive pseudo-portname resolves to nothing, port list is going to show everything. There may be a way to detect this condition and get it to show nothing, but I don't know if it's worth the effort. On Feb 1, 2007, at 10:47 AM, Elias Pipping wrote:
"inactive" is somewhat broken, i believe. (that's why i wouldn't recommend using "sudo port -f uninstall inactive" but a "port uninstall inactive" first to make sure the right things are uninstalled.
e.g. i had optipng 0.5.4, upgraded to 0.5.5.
so 0.5.4 is inactive, 0.5.5 is active
"port list inactive" lists optipng 0.5.5 "(sudo) port uninstall inactive" uninstalls optipng 0.5.5
also, "port list inactive" appears to display every single port there is (yes even those you don't have installed) if you don't have any inactive ports.
-- Kevin Ballard http://kevin.sb.org eridius@macports.org http://www.tildesoft.com
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Try: sudo port -v uninstall optipng @0.5.4 I think that is the command line that should work for you. HTH - -Altoine Elias Pipping wrote:
On Feb 1, 2007, at 2:54 PM, Daniel J. Luke wrote:
On Feb 1, 2007, at 7:57 AM, Chris Jefferson wrote:
Hello, thank you.
I get the following error message:
~$ sudo port uninstall inactive ---> Unable to uninstall apr 1.2.7_0, the following ports depend on it: ---> apr-util ---> subversion ---> apr-util ---> subversion ---> apr-util Error: port uninstall failed: Please uninstall the ports that depend on apr first.
sudo port -f uninstall inactive
"inactive" is somewhat broken, i believe. (that's why i wouldn't recommend using "sudo port -f uninstall inactive" but a "port uninstall inactive" first to make sure the right things are uninstalled.
e.g. i had optipng 0.5.4, upgraded to 0.5.5.
so 0.5.4 is inactive, 0.5.5 is active
"port list inactive" lists optipng 0.5.5 "(sudo) port uninstall inactive" uninstalls optipng 0.5.5
also, "port list inactive" appears to display every single port there is (yes even those you don't have installed) if you don't have any inactive ports.
Elias Pipping
_______________________________________________ macports-users mailing list macports-users@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo/macports-users
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFFwhcmS0foIafBdlkRAlT4AJ9Jh3yopH89fZ8pNlqBMPX7QGGQTwCfasCL EOp6T6wfjkX71tpND2CeWy0= =dHoI -----END PGP SIGNATURE-----
participants (6)
-
Altoine Barker
-
Chris Jefferson
-
Daniel J. Luke
-
Elias Pipping
-
Kevin Ballard
-
Yves de Champlain