Rainer Duffner
2012-Dec-27 09:44 UTC
Question: /usr/sbin/pkg vs /usr/local/sbin/pkg in 9.1
Hi, as I see it, pkgng is actually included in 9.1 as /usr/sbin/pkg, right? But when I define WITH_PKGNG=yes in /etc/make.conf the ports-system wants to install the pkgng-package (because it looks for pkgng in /usr/local/sbin). Is there a way to say "I have the pkg tool in base already"? Or is the pkg in base supposed to just install the pkgng from ports? Best Regards, Rainer
Matthew Seaman
2012-Dec-27 10:02 UTC
Question: /usr/sbin/pkg vs /usr/local/sbin/pkg in 9.1
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>
David Demelier
2012-Dec-27 10:35 UTC
Question: /usr/sbin/pkg vs /usr/local/sbin/pkg in 9.1
On 27/12/2012 11:02, Matthew Seaman wrote:> 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. >Why there is no plan to import it?>> 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 >Cheers, David
Dimitry Andric
2012-Dec-27 10:38 UTC
Question: /usr/sbin/pkg vs /usr/local/sbin/pkg in 9.1
On 2012-12-27 11:35, David Demelier wrote:> On 27/12/2012 11:02, Matthew Seaman wrote:...>> 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. > Why there is no plan to import it?Because pkgng is developed independently from the base system. As soon as you put a copy of it in base, it is no longer independent. :-)