Question: /usr/sbin/pkg vs /usr/local/sbin/pkg in 9.1

Matthew Seaman matthew at FreeBSD.org
Thu Dec 27 10:03:01 UTC 2012


On 27/12/2012 09:44, Rainer Duffner wrote:
> as I see it, pkgng is actually included in 9.1 as /usr/sbin/pkg, right?

/usr/sbin/pkg and /usr/local/sbin/pkg are very different.

/usr/local/sbin/pkg is a binary package management system.

/usr/sbin/pkg is a shim that can bootstrap the installation of
/usr/local/sbin/pkg if it is not already installed, or that invokes
/usr/local/sbin/pkg preserving the rest of the command line otherwise.

> Is there a way to say "I have the pkg tool in base already"?

pkgng is not in base and there are no plans to import it.  If you are
going to use pkgng then you need to install it, either from ports or by
using the /usr/sbin/pkg shim to install from a pkgng package.

> Or is the pkg in base supposed to just install the pkgng from ports?

Indirectly.  /usr/sbin/pkg installs from a pre-compiled tarball, which
is generated from the ports-mgmt/pkg port.

	Cheers,

	Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.
PGP: http://www.infracaninophile.co.uk/pgpkey


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 266 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20121227/df7b3545/attachment.sig>


More information about the freebsd-stable mailing list