Gunakan alat PKG_* untuk mengelola paket
: List installed packages.
$ pkg_info
: Query which package a file belongs to.
$ pkg_info -Fe /opt/pkg/bin/ffmpeg4
ffmpeg4-4.1.1
: List the contents of a package.
$ pkg_info -qL ffmpeg4
/opt/pkg/bin/ffmpeg4
/opt/pkg/bin/ffprobe4
[...]
: Perform an audit of all currently installed packages.
$ sudo pkg_admin fetch-pkg-vulnerabilities
$ pkg_admin audit
Package npm-6.9.0 has a denial-of-service vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2018-3721
Package nodejs-8.12.0 has a denial-of-service vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2018-7651
Package nodejs-8.12.0 has a http-response-splitting vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2018-12116
Package nodejs-8.12.0 has a spoofing vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2018-12123
[...]
: Create a binary package from some metadata files and package directory.
$ pkg_create -B build-info -c comment -d description -f packlist -I /opt/pkg -p files/ -U foo-1.0.tgz
Zaphod Beeblebrox