portversion vs. pkg_version

RW fbsd06 at mlists.homeunix.com
Sun Dec 24 06:36:29 PST 2006


On Sun, 24 Dec 2006 13:42:39 +0800
"Edward G.J. Lee" <edt1023 at ms17.hinet.net> wrote:

> Hi all,
> 
>   What's the difference between `portversion' and `pkg_version -I'?
> 
>

Probably not much. pkg_version is part of the base-system, portversion
is one of the portupgrade package tools. Since portversion was created,
pkg_version has I think acquired some new features blurring the
distinction.

Personally, I don't like to get version information from the INDEX
file, I'd rather get an accurate answer, than a fast one. Another
reason I don't like portversion is that it's forever asking me to run
pkgdb. Aside from being a pain, it makes portversion unsuitable for use
in scripts.


More information about the freebsd-questions mailing list