Debian | Red Hat | Description |
---|---|---|
dpkg -x package.deb | rpm2cpio package.rpm | cpio -id | extract package files to current directory |
dpkg -s package | grep ^Depends: | rpm -q --requires package | list files/packages that package needs |
dpkg -s package | rpm -q -i package | show all package metadata |
dpkg -S /path/file | rpm -q -f /path/file | what package does file belong |
dpkg -r package | rpm -e package | remove package |
dpkg -l package | rpm -q package | show version of package installed |
dpkg -L package | rpm -q -l package | list where files were installed |
dpkg -l '*spell*' | rpm -qa '*spell*' | show all packages whose names contain the word spell |
dpkg -I package.deb | rpm -q -i -p package.rpm | show all package file's metadata |
dpkg -Gi package(s).deb | rpm -Uvh packages(s).rpm | install/upgrade package file(s) |
dpkg -c package.deb | rpm -q -l -p package.rpm | list where files would be installed |
dpkg --purge --dry-run package | rpm -q --whatrequires package | list packages that need package (see also whatrequires) |
apt-get remove | yum remove | remove specified packages from system |
apt-get install | yum install | install latest version of package(s) |
apt-get dist-upgrade | yum update [package list] | upgrade specified packages (or all installed packages if none specified) |
apt-cache list [package list] | yum list [package list] | list available packages from repositories |
REFERENCES
http://www.ittidbits.com/blog/?p=291