20121010:
AFFECTS: users of CURRENT (OSVERSION >= 1000017)
AUTHOR: bapt@FreeBSD.org
The ports tree is now using pkgng as the default package manager
for HEAD. This only affects users of CURRENT -- users of other
branches need not take any action.
To keep pkg_install as the default package manager, use the new
WITHOUT_PKGNG knob in make.conf
To make the switch:
1/ Set WITHOUT_PKGNG=yes in make.conf and upgrade all your ports to
the latest available versions using your favourite tools.
2/ Install ports-mgmt/pkg
3/ Remove WITHOUT_PKGNG from make.conf and run:
# pkg2ng
20121015:
AFFECTS: users of ports-mgmt/portmaster
AUTHOR: bdrewery@FreeBSD.org
Portmaster now supports pkgng. To use pkgng, enable the patch in the port,
enable pkgng in your make.conf, and convert your existing /var/db/pkg
database. Also see UPDATING entry 20121010 if you are on a recent CURRENT
and do not want to use pkg.
# make -C /usr/ports/ports-mgmt/portmaster config build deinstall install clean
# echo 'WITH_PKGNG=yes' >> /etc/make.conf
# pkg2ng
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.
# echo 'WITH_PKGNG=yes' >> /etc/make.conf
# pkg2ng
# pkgdb -fu
kapetros said:Hello, I'm on FreeBSD 9.0 Stable, and after todays ports update, I show the new pkg2ng thing.
Is this only for Current? because it broke my pkgdb, after executing the portmaster instructions in ports Updating file.
# rm -/var/db/pkg/pkgdb.db
# pkgdb -Ffuv
server# make install clean
/usr/ports/ports-mgmt/pkg/work/pkg-1.0.1/pkg-static/pkg-static: not found
*** Error code 127
Stop in /usr/ports/ports-mgmt/pkg.
server#
Correct.mariourk said:So, commands likesuddenly don't work anymore?Code:pkg_version -v | grep '<'
A similar command:What am I supposed to use instead?
# pkg version -v | grep '<'
Probably kicking in an open door, but is there some documentation that sheds some light on this? :q
SirDice said:Nothing went wrong, it did exactly what it's supposed to do. PKGNG is a replacement for the pkg_tools. If you start using it the old tools won't work anymore. This is by design.
I'm wondering if anyone could code up a /ports-mgmt/legacy-pkg which would formulate a /var/db/pkg "v9" database on top of the pkg database after pkg is installed. (And maybe legacy command front-ends for the newer ones...)SirDice said:Nothing went wrong, it did exactly what it's supposed to do. PKGNG is a replacement for the pkg_tools. If you start using it the old tools won't work anymore. This is by design.