8.3 Managing Binary Packages with pkg
Installing the pkg Package Manager
# pkg # Type pkg and press Enter
The package management tool is not yet installed on your system. # pkg is not yet installed
Do you want to fetch and install it now? [y/N]: y # Type y and press Enter to confirm installation
Bootstrapping pkg from pkg+https://pkg.FreeBSD.org/FreeBSD:14:amd64/quarterly, please wait... # Note here, the default is the quarterly branch repository
Verifying signature with trusted certificate pkg.freebsd.org.2013102301... done
Installing pkg-1.21.3...
Extracting pkg-1.21.3: 100%
pkg: not enough arguments # This error indicates missing arguments, but it's just for installing pkg itself and can be ignored
Usage: pkg [-v] [-d] [-l] [-N] [-j <jail name or id>|-c <chroot path>|-r <rootdir>] [-C <configuration file>] [-R <repo config dir>] [-o var=value] [-4|-6] <command> [<args>]
For more information on available commands and options see 'pkg help'.Installing Software with pkg
Updating Software with pkg
Viewing All Installed Software
Uninstalling Software
How to Uninstall All Self-Installed Third-Party Software?
References
Listing Files Installed by a pkg Package
Finding Missing .so Files (Applicable to Linux Compatibility Layer)
.so Files (Applicable to Linux Compatibility Layer)Installing pkg-provides
Configuring pkg-provides
Example: Finding libxcb-icccm.so.4
libxcb-icccm.so.4Troubleshooting and Unfinished Business
Unable to Find Packages Mentioned in This Book in pkg
ld-elf.so.1: Shared object "libmd.so.6" not found, required by "pkg"
ld-elf.so.1: Shared object "libmd.so.6" not found, required by "pkg"RELEASE
CURRENT/STABLE
pw: user 'package' disappeared during update
pw: user 'package' disappeared during updateShared object "x.so.x" not found, required by "xxx"
Shared object "x.so.x" not found, required by "xxx"Appendix: Extended Usage and References for bsdadminscripts2
bsdadminscripts2Newer FreeBSD version for package pkg
Newer FreeBSD version for package pkgpkg: An error occurred while fetching package: No error
pkg: An error occurred while fetching package: No errorAppendix: Analysis of the Difficulties and Current Status of FreeBSD Package Atomic Updates
Exercises
Last updated