Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

157 lines (101 sloc) 5.688 kb

pkgng - Frequently Asked Questions (FAQ)

Table of Contents

Q: How can I start using pkgng?

In order to start using pkgng, please follow the steps below.

Install ports-mgmt/pkg:

    # make -C /usr/ports/ports-mgmt/pkg
    # echo "WITH_PKGNG=yes" >> /etc/make.conf

Now register all packages you have in the pkgng database:

# pkg2ng

And that was it. Please read the man pages for more information on the commands.

Q: Is there an equivalent for pkg-orphan/pkg_cutleaves with pkgng?

pkg autoremove is what you are looking for.

Q: How is pkgng different from the FreeBSD pkg_* tools? What is the motivation behind pkgng?

The README should explain all of that :)

Q: How is pkgng different from PC-BSD PBI packages?

PBI are flat/complete packages, where pkgng do package ports as there are.

Q: What is the difference between pkg delete -y and pkg delete -f?

By default pkgng will ask before doing something, -y == yes means yes do it. But if a package it depends on it will fail saying it is depend on, -f == force means that delete it anyway.

Q: Where is pkg info -R, the old pkg_info had -R?

New flags are: pkg info -d for depends on, and pkg info -r for reverse dependencies.

Q: Can pkgng replace a package with an another version, e.g. pkg upgrade pkg-1.0 pkg-2.0?

Currently not, but it is in the todo list.

Q: How does pkgng deal with dependencies? If pkgA-1.0 depends on pkgB-1.0 and pkgB-1.0 is updated to pkgB-2.0, will pkgA notice the change?

Yes, pkgA will automatically notice the change.

Q: The repository format of pkgng is different from the old one. Will pkgng adapt the old format too?

The documented (README) way to create a new repository creates all packages in one directory.

This is different from earlier repository format, which creates it in separate directories.

Pkgng doesn not depend on a hierarchy, it recursively finds the packages from the provided directory entry.

Q: Does pkg repo include symlinked packages?

The default hierarchy has lots of symlinks which should just be ignored and thus pkgng doesn not read symlinks.

Q: How do I know if I have packages with the same origin?

Here is how to do that:

sh -c 'find . -name "*.txz" -exec pkg query -f {} %o \;' | sort | uniq -d

Q: How to start working with multi-repos in pkgng?

Please refer to the README, which explains how to enable and get started with multi-repos in pkgng.

Q: Why is pkg create slow?

The number one reason is the XZ compression, which is slow.

Q: Does pkgng work with portaudit?

No, pkgng uses internal pkg audit command.

Q: When will pkgng be the default package manager of FreeBSD?

Possibly in version 9.1.

Q: How can I use pkgng with portmaster?

First make sure you have the latest portmaster patch from the Github repo.

The latest patch can be found here:

Now patch portmaster:

# cp patch-portmaster-pkgng /usr/ports/ports-mgmt/portmaster/files
# make -C /usr/ports/ports-mgmt/portmaster clean deinstall reinstall

Enable pkgng in portmaster:

# echo "WITH_PKGNG=yes" >> /etc/make.conf

That was it.

Q: How can I use pkgng with portupgrade?

Currently only ports-mgmt/portupgrade-devel supports pkgng.

# portupgrade -f -o ports-mgmt/portupgrade-devel ports-mgmt/portupgrade
# echo "WITH_PKGNG=yes" >> /etc/make.conf
# pkg2ng

More information can be found in the portupgrade NEWS file.

Q: pkgng does not work it says: /usr/local/sbin/pkg: Undefined symbol "pkg_event_register"

You should have forgotten make delete-old-libs when you upgraded your system.

during 9-CURRENT life the pkg_install tools has been splitted to provide a shared library: and this has been reverted, this error message means that this library is still on your system, please check /usr/lib/

Jump to Line
Something went wrong with that request. Please try again.