Task |
Red Hat, Fedora |
Ubuntu |
Basic Information |
Package suffix |
*. Rpm |
*. Deb |
Software source configuration file |
/Etc/yum. conf |
/Etc/APT/sources. List |
Install, delete, and upgrade software packages |
Update the package list |
Automatic execution every time yum is run |
Apt-Get update |
Install software from software warehouse |
Yum install package |
Apt-Get install package |
Install a downloaded software package |
Yum install PKG. rpm Rpm-I PKG. rpm |
Dpkg-I PKG. Deb PKG -- install PKG. Deb |
Delete a software package |
Rpm-e package |
Apt-Get remove package |
Software Package upgrade check/test |
Yum check-Update |
Apt-get-s upgrade Apt-get-s dist-Upgrade |
Upgrade Software Package |
Yum update Rpm-uvh [ARGs] |
Apt-Get upgrade |
Upgrade the entire system |
Yum upgrade |
Apt-Get dist-Upgrade |
Software Package Information |
Obtains information about a software package. |
Yum search package |
Apt-Cache show package |
Obtain information about all software packages |
Yum list available |
Apt-Cache dumpavail |
Show all installed software |
Yum List Installed Rpm-Qa |
Dpkg-l Dpkg -- list |
Obtains information about an installed software package. |
Yum info package Rpm-Qi package |
Dpkg -- status package |
List the files contained in an installed software package |
Rpm-QL package |
|
List documents contained in an installed software package |
Rpm-Qd package |
None |
List the configuration files contained in an installed software package |
Rpm-QC package |
None |
Displays the list of packages that a software package depends on. |
Rpm-QR package |
Apt-Cache depends package |
Displays the reverse dependency of a software package. |
Rpm-Q-whatrequires [ARGs] |
Apt-Cache rdepends package |
Package File Information |
Obtains information about a software package. |
Rpm-qpi pkg. rpm |
Dpkg -- info PKG. Deb |
Obtains the list of files contained in a software package. |
Rpm-qpl PKG. rpm |
Dpkg -- contents PKG. Deb |
Obtain the documents contained in a software package file |
Rpm-qpd PKG. rpm |
None |
Obtains the configuration file contained in a software package file. |
Rpm-qpc PKG. rpm |
None |
Decompress the Software Package |
Rpm2cpio PKG. RPM | cpio-vid |
Dpkg-Deb -- extract PKG. Deb |
Search which software package is used to install a file. |
Rpm-qf/file/Name |
Dpkg-S/file/Name Dpkg -- search/file/Name |
Search for all software packages that provide a file |
Yum provides/file/Name |
Apt-file search/file/Name |
Miscellaneous |
Displays the cache status of local software packages. |
None |
Apt-Cache stats |
Verify all installed software packages |
Rpm-va |
Debsums |
Delete all locally cached software packages |
Yum clean packages |
Apt-Get clean |
Only remove outdated software packages in the local cache |
None |
Apt-Get autoclean |
Delete all software package information |
Yum clean Headers |
Apt-file purge |