Upgrading a Port
If the version of a port has changed, you can simply make install it over the old version. This can be a bad idea, however; most of the installed files will be the same from one version to another, so if you try to pkg_delete an older version of the same port or package while a newer one is installed over it, you will end up deleting most of the newer version as well. If you have pkg_version output like the following, you're stuck with the earlier versions in your package database, unless you're willing to deinstall all versions of the package and then reinstall the current version:
apache-1.3.12 < needs updating (index has 1.3.19) apache-1.3.14 < needs updating (index has 1.3.19) apache-1.3.17 < needs updating (port has 1.3.19) ...
Get FreeBSD® Unleashed now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.