Package Management Flashcards
dpkg –info
shows information about a package from a package file
dpkg –status
an abbreviated version of –info
dpkg –search
searches for a package via package database. will include file names in the search
dpkg –list
searches for a package via the package database. a good way to see if the package is installed
apt dist-upgrade
will update all packages on the system and will remove minor packages to fix dependencies issues
apt upgrade
will update all packages on the system but will not remove anything
apt update
reads the /etc/apt/sources.list and updates local cache
apt-cache search
searches for a package in remote repos
apt-cache show
shows information about a package and its dependencies
apt-cache showpkg
shows information about packages but more detailed then show
rpm -K
checks the MD5 GPG signature
rpm -i
install a package
rpm -V
verifies the package, runs some tests
rpm -e
erase or remove a package
rpm -U
upgrades a package. will install a package if its not installed
rpm -F
freshens a package, it will upgrade a package but will not install it if it is not currently installed
rpm -q
queries to see if a package is installed
rpm -qil
used for installed packages, with short or long name format
rpm -qilp
used for uninstalled packages with a file specified
yum list
searches remote repos for a package
main config file for yum
/etc/yum.conf
yum repo config files are store in this dir
/etc/yum.repos.d