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

David Demelier demelier.david at gmail.com
Thu Dec 27 10:35:22 UTC 2012


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


More information about the freebsd-stable mailing list