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.
Categories:
Mac