Action |
rpm command |
dpkg command |
Query package file for information |
rpm -qpi foo.rpm |
dpkg --info foo.deb |
List all files in a package file |
rpm -qpi foo.rpm |
dpkg --contents foo.deb |
Query installed package for information |
rpm -qi foo |
dpkg -s foo |
List all files in an installed package |
rpm -ql foo |
dpkg -L foo |
List all currently installed packages |
rpm -qa |
dpkg -l |
What package owns this file? |
rpm -qf /usr/bin/foo |
dpkg -S /usr/bin/foo |
Install package |
rpm -ivh foo.rpm |
dpkg -i foo.deb |
Uninstall package |
rpm -e foo |
dpkg -r foo |