FreeBSD Handbook, upgrading ports incorrect with 10.0-RELEASE?
hybrid120 at gmail.com
Wed Apr 9 15:15:41 UTC 2014
> On Apr 9, 2014, at 5:28 AM, Remy van Elst <relst at relst.nl> wrote:
> As I just tried, replacing pkg_version -l "<" with pkg version -l "<" (note the underscore) gives the same result and allows me to recompile/update the ports that are outdated.
> Maybe this can be added to the handbook? As in, for non-pkgng do this, for pkgng do this. I find my level of knowledge on FreeBSD not enough to submit a patch myself, therefore the mailing list seems good.
I'm not sure this is really the correct way to do this in the first place.
Are you using binary packages, or are you just installing things from the ports tree?
If you're just using binary packages, the best method is "pkg upgrade". If you are using ports, the method most people would use would be "portmaster -aD" (meaning "install all upgrades and clean up all downloaded files afterwords"), though I don't think portmaster is installed by default.
Maybe I'm missing something, but I just don't see why you would use this "pkg_version" method as opposed to the proper functions for upgrading. To me, it sounds like that method may have been originally used before these functions became available.
More information about the freebsd-questions