Table of Contents
This type requires that repository definitions already exist in /etc/pkg/*.conf. Ensure that they exist prior to use of this type with __file.
pkg-ng can’t upgrade a package to a specific version. If this type needs to upgrade a package, it can only ugprade to the latest available version. If the "upgrade" parameter is not given and an upgrade needs to occur, an error will result.
# Ensure zsh is installed __package_pkgng_freebsd zsh --state present # Ensure vim is installed, use flavor no_x11 __package_pkgng_freebsd vim --state present --flavor no_x11 # If you don't want to follow pythonX packages, but always use python __package_pkgng_freebsd python --state present --name python2 # Install a package from a particular repository when multiples exist __package_pkgng_freebsd bash --state present --repo myrepo # Remove obsolete package __package_pkgng_freebsd puppet --state absent