| Task |
Red Hat, Fedora |
Ubuntu |
| Basic information |
| Package suffix |
*.rpm |
*.deb |
| Software Source configuration file |
/etc/yum.conf |
/etc/apt/sources.list |
| Install, remove, upgrade packages |
| Update package List |
Automatically execute each time Yum is run |
Apt-get Update |
| Installing software from software Warehouse software |
Yum Install package |
Apt-get Install Package |
| Install a downloaded package |
Yum Install pkg.rpm rpm-i pkg.rpm |
Dpkg-i Pkg.deb Pkg–install Pkg.deb |
| Remove Package |
RPM-E Package |
Apt-get Remove Package |
| Package upgrade Check/test |
Yum Check-update |
Apt-get-s Upgrade Apt-get-s Dist-upgrade |
| Upgrade Packages |
Yum update RPM-UVH [args] |
Apt-get Upgrade |
| Upgrade the entire system |
Yum Upgrade |
Apt-get Dist-upgrade |
| Package information |
| Get information about a package |
Yum Search Package |
Apt-cache Show Package |
| Get information on all packages |
Yum List available |
Apt-cache Dumpavail |
| Show all installed software |
Yum List installed Rpm-qa |
Dpkg-l dpkg–list |
| To obtain information about an installed package |
Yum Info Package Rpm-qi Package |
Dpkg–status Package |
| Lists the list of files that are included in an installed package |
RPM-QL Package |
|
| List the documents that are included with an installed package |
RPM-QD Package |
No |
| List the configuration files that are included with an installed package |
RPM-QC Package |
No |
| Displays a list of packages on which a package depends |
RPM-QR Package |
Apt-cache depends package |
| Show reverse dependencies for a package |
Rpm-q-whatrequires [args] |
Apt-cache Rdepends Package |
| Package file Information |
| Get information about a package file |
Rpm-qpi pkg.rpm |
Dpkg–info Pkg.deb |
| Get a list of files that a package file contains |
RPM-QPL pkg.rpm |
Dpkg–contents Pkg.deb |
| Get the documents contained in a package file |
RPM-QPD pkg.rpm |
No |
| Get the configuration file that a package file contains |
RPM-QPC pkg.rpm |
No |
| Package Decompression |
Rpm2cpio pkg.rpm | Cpio-vid |
Dpkg-deb–extract Pkg.deb |
| Search for a file that is installed by which package |
Rpm-qf/file/name |
Dpkg-s/file/name Dpkg–search/file/name |
| Search all packages that provide a file |
Yum Provides/file/name |
Apt-file Search/file/name |
| Miscellaneous |
| Displays the status of the local package cache |
No |
Apt-cache Stats |
| Verifying all installed Packages |
Rpm-va |
Debsums |
| Delete all packages that are cached locally |
Yum Clean Packages |
Apt-get Clean |
| Remove obsolete packages from the local cache only |
No |
Apt-get AutoClean |
| Remove all package information |
Yum Clean headers |
Apt-file Purge |