-
RPM
- rpm - basic command for interacting with installed RPMs or RPM files
- yum/dnf - front end for rpm, handles repositories
- yum-utils - collection of several related tools
- repoquery - part of yum-utils, query repositories
-
DEB
- dpkg - basic command for interacting with installed DEBs or DEB files
- apt - front end for dpkg, handles repositories
- aptitude - ncurses and CLI front end for apt
- synaptic - graphically front end for apt
- https://www.debian.org/doc/manuals/debian-faq/ch-pkgtools.en.html
- RPM
- rpm -i $pkg
- yum localinstall $pkg
- yum install $pkg
- DEB
- dpkg $pkg
- apt-get install $pkg
- rpm -u
- yum update
- rpm -e
- yum erase
- rpm -q $pkg
- rpm -qi $pkg
- yum info $pkg
- rpm -qa
- rpm -qf
- rpm ‐qc packagename
- rpm ‐ql packagename
- yum check‐updates
- yum provides $thing
- yum clean all
- RPMs are signed with GPG keys
- Repositories usually place their keys in /etc/pki/rpm‐gpg.
- Yum will bug you to accept a key if you haven't already imported it into the RPM keyring.
- rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
- NEVRA - name, epoch, version, release, arch
- semantic