Pkgng has it’s own way of keeping track of installed packages.This means to start using pkgng with all your existing packages you need to import them first.
Bsd pkg updating pride dating
Free BSD has been long due a better package management system, pkg_add, pkg_info, etc just doesn’t cut it any more.
For a long time GNU/linux users have always used this as a reason not to use Free BSD and instead favour some GNU/linux combination with an all encompassing easy to use package manager, such as Debian’s apt-get.
To do this pkgng provides a nice shell script which is installed in /usr/local/sbin/pkg2ng. When the script finishes all of your packages will have been registered with pkgng and you can start using it as your new package manager.
You will also notice the old pkg_* tools are now obsolete, running pkg_info will show no installed packages.
Here’s an exmaple of the help command and the available man pages.
DESCRIPTION pkg add installs a package from either a local source or a remote one.
Before it actually does anything it will show you what it is going to do as well as how much disk space will be used and how much data will be downloaded. The pkg add command is a little bit like pkg install but don’t get them confused, they are quite different.
pkg add requires a full path to the package file to install whether that is local or remote.
To get pkgng working you must first configure a PACKAGESITE in /usr/local/etc/pkg.conf, or you will get an error like this: In the near future this value will be set automatically.