Reputation: 6210
I would like to know how to either ignore upgrading certain ports or unmark them as "outdated".
This is motivated by certain ports failing to upgrade, while I wish to upgrade all the rest. I know about sudo port install -n
, which allows one to install a port without upgrading port dependencies, as in the case of mongodb
requiring an older (not the current) version of theboost
libraries, but this is not applicable here.
For example:
$ sudo port list outdated
gdb @7.5 devel/gdb
py27-scikits-image @0.7.1 python/py-scikits-image
As [email protected]
fails to update, I would just like to upgrade the others, ie. py27-scikits-image
, without going thru the whole sudo port list outdated | awk '{print $1}' | grep -v gdb | xargs sudo port upgrade
pipeline.
Much appreciated.
Upvotes: 4
Views: 1331
Reputation: 1919
I would advise to create a local portfile for gdb with a lower version number.
portindex
in your local portfile repositoryThe local portfile overrides the one downloaded from the default port repository. The low version number makes macports think your version of gdb is up to date.
I hope this can help.
BTW: you can do sudo port upgrade outdated and not gdb
Upvotes: 5