Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 27 Oct 2012 20:00:12 -0500
From:      Bryan Drewery <bdrewery@freebsd.org>
To:        Alexander Kapshuk <alexander.kapshuk@gmail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Portupgrade now supports pkgng [/usr/ports/UPDATING]
Message-ID:  <508C839C.5090209@FreeBSD.org>
In-Reply-To: <508C2668.4010006@gmail.com>
References:  <508C2668.4010006@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 10/27/2012 1:22 PM, Alexander Kapshuk wrote:
> Quick question about portupgrade's support for pkgng.
> 
> The /usr/ports/UPDATING says:
> 20121015:
>   AFFECTS: users of ports-mgmt/portupgrade
>   AUTHOR: bdrewery@FreeBSD.org
> 
>   Portupgrade now supports pkgng. To use pkgng, enable it in your
> make.conf,
>   and convert your databases.
> 
>   This is optional and not currently required.
> 
>   # make -C /usr/ports/ports-mgmt/pkg install clean
>   # echo 'WITH_PKGNG=yes' >> /etc/make.conf
>   # pkg2ng
>   # pkgdb -fu
> 
> Having done all of the above, I ran portupgrade to update all the pkgs
> that needed upgrading on my system, and got the message below:
> root@box0:/root/tmp # portupgrade -varRP --batch -L '%s_%s'
> USING PKGNG
> Packages are not yet suported. Use pkg(8) directly.
> 
> That doesn't sound like portupgrade supports pkgng, or did I misread the
> message in the UPDATING file?


PKGNG is a replacement for the pkg_* tools that record package data in
/var/db/pkg.

It also allows for binary package upgrades.

If you are wanting to use pkgng for binary packages, there's no need to
use portupgrade anymore. Just 'pkg install name', 'pkg upgrade', etc.

> 
> box0=; uname -a
> FreeBSD box0.my.domain 9.1-RC2 FreeBSD 9.1-RC2 #0 r241133: Tue Oct 2
> 17:11:45 UTC 2012
> root@obrian.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386
> 
> Thanks.
> 
> Alexander Kapshuk.

-- 
Regards,
Bryan Drewery
bdrewery@freenode/EFNet



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?508C839C.5090209>