RPM and DPKG command reference

Welcome to RPM and DPKG command reference. RPM is a package manager used in Red Hat Enterprise, Fedora, SuSE and many other Linux distributions. DPKG is a package manager used in Debian, Ubuntu and other Debian based distributions.

Below we will refer to {file.deb} or {file.rpm} which is a package file on the filesystem. When we refer to {package} we are talking about installed package

Installing / updating

RPM DPKG Description
rpm -i {file.rpm} dpkg -i {file.deb} Install package from a file
rpm -U {file.rpm} dpkg -i {file.deb} Update package from a file

Remove

RPM DPKG Description
rpm -e {package} dpkg -r {package} Remove a installed package

Querying

RPM DPKG Description
rpm -qa dpkg -l List all installed packages
rpm -ql {package} dpkg -L {package} List files in a installed package
rpm -qi dpkg -p {package} Show information about a installed package
rpm -qpi {file.rpm} dpkg -I {file.deb} Show information about package file
rpm -qpl {file.rpm} dpkg -c {file.deb} List files in a package file

Verifying

RPM DPKG Description
rpm -Va na Verify all installed packages
rpm -V {package} na Verify installed package

Sysvik monitoring and inventory for Windows and Linux

Valid XHTML 1.0 Transitional