Re: portversion vs pkg_version
From: Kris Kennaway (kkenn_at_rot13.obsecurity.org)
Date: 09/02/03
- Next message: Kris Kennaway: "Re: /dev/apm with freebsd5.1"
- Previous message: Steve O'Hara-Smith: "Re: Building world and kernel at the same time?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 02 Sep 2003 17:00:15 GMT
In article <3f533075$0$25245$5fc3050@dreader1.news.tiscali.nl>, Marco van Lienen wrote:
> Hi all!
>
> I know portversion comes from the portupgrade port and pkg_version from the
> base install.
> But when I run a `pkg_version -L =` and a `portversion -L =` the ouput is
> different.
> I don't understand yet why that is, since AFAIK both give status info back
> with regard to installed ports/packages.
portversion uses the INDEX file to look up port versions. If your
INDEX is out of date you will get stale results. You can build a new
INDEX file with portsdb -uU, but this can take a long time depending
on hardware. pkg_version does not use INDEX but queries the port
versions directly - as a result it is usually slower than portversion
(not as slow as a full INDEX rebuild) but guaranteed to be accurate.
Kris
- Next message: Kris Kennaway: "Re: /dev/apm with freebsd5.1"
- Previous message: Steve O'Hara-Smith: "Re: Building world and kernel at the same time?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|