upgrading a macport package
Upgrading a macports (darwinports) package is not as easy as
$ sudo port upgrade something
In many cases I need the following command:
$ sudo port -u -n -f upgrade something
(Use it only when you know what it means!)
1) -u: The upgrade option by default does not uninstall an upgraded port, it deactivates it. If you wish to uninstall the old version, use the -u
option.
2) -n: If you wish not to upgrade a port’s dependencies, use the -n switch.
3) -f: The uninstall phase is a part of upgrade. If a port as installed as a dependency of another port, uninstall will not remove it unless you remove the dependent ports first. To override this behavior, use the -f (force) switch.
December 8th, 2008 at 10:37 pm
*FANTASTIC* advice! I’d been wondering how to go about this type of upgrade for a while, and the port documentation doesn’t really make it clear as to how to go about it. Thanks!