Pkg 1.0 is out now! The betas and RCs are over, say hello to the first release!

You may, or may not have heard of the introduction of FreeBSD's new package manager, which is a huge improvement of the old pkg-* tools.

What is pkgng?

Quote:pkgng is:

a replacement for pkg_* tools
a tool to query/manage installed packages
a tool to deal with binary packages
a tool to upgrade/install packages from a remote repository
a library that provides all the package management in a safe way so one can write a new frontend

INSTALLING:

To install pkgng, you can install directly from the ports tree:

Code:

cd /usr/ports/ports-mgmt/pkg; make install clean

Once installed, you'll need to setup the config.

Code:

mv /usr/local/etc/pkg.conf.sample /usr/local/etc/pkg.conf

the config won't need any editing, it already has a repo setup for it now.

REPO UPDATE:

To update the repo.

PHP Code:

pkg update

If you've been installing from ports or using the old pkg-* tools. You should register all installed packages in the new database.

PACKAGE REGISTRATION:

Code:

sudo /usr/local/sbin/pkg2ng

This may take awhile depending on how many packages you have installed.