pkg (aka pkgng) 1.0 released

Chris Rees crees at
Fri Aug 31 14:41:06 UTC 2012

On 31 August 2012 15:26, Alexander Pyhalov <alp at> wrote:
> Hello.
> Could I ask one stupid question?
> So, I've installed pkg from ports. Added WITH_PKGNG=yes to make.conf.
> Built some packages with "make package-recursive" to use as common
> repository for several systems.
> Now if I wish to update pkg, what should I do?
> So, for example, I'll make portsnap fetch && portsnap update...
> But could I "make install" pkg port after deinstalling it?
> As I remember, portmaster do it in the same way: backup && deinstall &&
> install...

Yes, have a look at ports-mgmt/pkg;

.if !exists(${LOCALBASE}/sbin/pkg)
PKG_BIN=        ${WRKSRC}/pkg-static/pkg-static

pkgng uses the pkg-static binary that is built to do the installation etc.


More information about the freebsd-ports mailing list