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/Option | Example | Description |
---|
pkg_add | pkg_add <package> | Install a package |
pkg_delete | pkg_delete <package> | Remove a package |
pkg_info | pkg_info <package> | Show information about a package |
pkg_admin | pkg_admin update | Update the package database |
pkg_info | pkg_info | List installed packages |
Package Management
#
Command/Option | Example | Description |
---|
pkg_add | pkg_add <package> | Install a package |
pkg_delete | pkg_delete <package> | Remove a package |
pkg_info | pkg_info <package> | Display information about a package |
pkg_info -a | pkg_info -a | List all installed packages |
Configuration
#
Command/Option | Example | Description |
---|
pkgsrc | cd /usr/pkgsrc | Navigate to the pkgsrc directory |
make | make install | Build and install a package from source |
Repository Management
#
Command/Option | Example | Description |
---|
pkg_add -r | pkg_add -r <package> | Install a package from remote repository |
pkg_add -u | pkg_add -u <package> | Upgrade an installed package |
Advanced Commands
#
Command/Option | Example | Description |
---|
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.