pkgsrc

pkgsrc Cheatsheet #

pkgsrc is a package management system used by various Unix-like operating systems. It provides a framework for building and installing software packages.

Basic Commands #

Command/OptionExampleDescription
pkg_addpkg_add <package>Install a package
pkg_deletepkg_delete <package>Remove a package
pkg_infopkg_info <package>Show information about a package
pkg_adminpkg_admin updateUpdate the package database
pkg_infopkg_infoList installed packages

Package Management #

Command/OptionExampleDescription
pkg_addpkg_add <package>Install a package
pkg_deletepkg_delete <package>Remove a package
pkg_infopkg_info <package>Display information about a package
pkg_info -apkg_info -aList all installed packages

Configuration #

Command/OptionExampleDescription
pkgsrccd /usr/pkgsrcNavigate to the pkgsrc directory
makemake installBuild and install a package from source

Repository Management #

Command/OptionExampleDescription
pkg_add -rpkg_add -r <package>Install a package from remote repository
pkg_add -upkg_add -u <package>Upgrade an installed package

Advanced Commands #

Command/OptionExampleDescription
pkg_info -L <package>pkg_info -L <package>List files installed by a package
pkg_info -R <package>pkg_info -R <package>Show reverse dependencies of a package
pkg_admin -K <key>pkg_admin -K <key>Manage package signing keys

This cheatsheet provides essential pkgsrc commands for package management and configuration across Unix-like operating systems.

pkgsrc

Explore our comprehensive cheatsheets to enhance your knowledge and efficiency. Each cheatsheet provides detailed command options, examples, and descriptions to help you master various tools and technologies.