First let’s install pkgng, (should we be calling it simply ‘pkg’?
), it is in the Free BSD ports tree and you can find it under ‘ports-mgmt/pkg‘.
One of the very cool features of pkgng, you can manage packages in side a jail or chroot from the host OS by providing the Jail ID (JID) or chroot path.
The next thing we see are all the subcommands that we can use, including a useful ‘help’ subcommand that will quickly display the man page (if available for that command).
Here’s an exmaple of the help command and the available man pages.
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.
Free BSD’s response has always been, (not actual quote), “We have the ports collection, which is cooler and more flexible than just having some easy to use package manager.
You can always do it yourself by writing scripts around the pkg_* tools or using portmaster’s –packages-only option”.
While this is all true, there is still a gap for a good package manager that needs filling.
So here comes pkgng (pkg: (next|new) generation), this is Free BSD’s next generation package manager , it is very nice.