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