Remove "Phantom" Ports
sriranga at berkeley.edu
Thu Mar 10 09:18:25 UTC 2022
Thanks for clarifying, I mis-typed the command I normally use (which you mentioned below):
$ sudo port -u upgrade outdated
Based on your description, it may be safer to just do:
$ sudo port upgrade outdated
and periodically run:
$ sudo port reclaim
I have never seen a reminder to run port reclaim, but my macports installation is old and I may have messed with the config files at some point and forgotten about it.
> On Mar 10, 2022, at 00:34, Ryan Schmidt <ryandesign at macports.org> wrote:
> On Mar 9, 2022, at 17:13, James Secan wrote:
>> when I run "port upgrade installed -u outdated”
> This command doesn't make a great deal of sense. You're asking MacPorts to upgrade the "installed" ports (which includes those those that are outdated and those that aren't) and also the "outdated" ports (those that are outdated). It would be simpler and more efficient to just run "sudo port -u upgrade outdated". Single-dash/single-letter flags like "-u" go after "port" and before the action (the action in this case being "upgrade").
> For completeness, "-u" means "uninstall inactive ports"; if you want to keep inactive ports, for example as a safeguard so that you could return to them in case something is wrong with the new version, then don't use "-u". When you eventually run "sudo port reclaim", that will get rid of the inactive versions.
> MacPorts reminds to run "sudo port reclaim" if you have not done so in a few weeks, unless you have configured MacPorts not to remind you.
More information about the macports-users