PKGNG: ability to view pkg-plist?

Matthew Seaman matthew at
Fri Oct 25 22:06:08 UTC 2013

On 25/10/2013 18:24, Ken Moore wrote:
> I have been looking around, but I am unable to find a way to easily read
> the pkg-plist within a PKGNG package on the repository. Is this
> functionality missing in pkg, or am I just missing something?

If you've downloaded the package tarball, then like this:

lucid-nonsense:...cache/pkg/All:% pkg info -l -F ./pkg-1.1.4_8.txz

Otherwise there is an optional '-l' flag to 'pkg repo' that creates a
database of all of the files installable by all of the packages in the
repo -- which should be downloadable as 'filesite.txz'.  Whether this
exists or not depends on the choices of the repository maintainer.  It's
not currently available from the official repos for

> Just for a bit of context:
> I am working on adding the functionality into EasyPBI to work *without*
> a local copy of the ports tree available, so I am trying to grab all the
> information about a given package from the remote repository (with user
> privileges) to maintain the "Easy" part of EasyPBI in the new version.
> Most of the information can be easily pulled using "pkg rquery", but the
> only thing I am still missing is the ability to search through the
> pkg-plist for binaries/icons/etc..

Yeah -- the repository catalogue is a collection of selected package
metadata for the packages in the repo.  Unfortunately the lists of files
and directories from each package aren't part of that selection.  Mostly
because of the space they'd take up.

Whether it would be desirable to publish a 'filesite.txz' index of all
the files in the packages on the official repos is a matter for debate.
It would probably mean some changes to poudriere too -- I can't see any
obvious way of telling it to run 'pkg repo -l' instead of plain 'pkg repo'.



Dr Matthew J Seaman MA, D.Phil.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 1036 bytes
Desc: OpenPGP digital signature
URL: <>

More information about the freebsd-ports mailing list