Operation |
RPM |
deb |
Install package |
rpm -i foo.rpm |
dpkg --install foo.deb |
Install package, dependencies |
yum install foo |
apt-get install foo |
Remove package |
rpm -e foo.rpm |
dpkg --remove foo.deb |
Remove package, dependencies |
yum remove foo |
apt-get autoremove foo |
Update package |
rpm -U foo.rpm |
dpkg --install foo.deb |
Update package, dependencies |
yum update foo |
apt-get install foo |
Update entire system |
yum update |
apt-get dist-upgrade |
Show all installed packages |
rpm -qa or
yum list installed |
dpkg --list |
Get information on package |
rpm -qil foo |
dpkg --listfiles foo |
Show packages named foo |
yum list "foo" |
apt-cache search foo |
Show all available packages |
yum list |
apt-cache dumpavail foo |
What package is file part of? |
rpm -qf file |
dpkg --search file |