Red Hat, Fedora and Ubuntu package operations

Source: Internet
Author: User

v. Red Hat, Fedora and Ubuntu package operation comparison
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

Red Hat, Fedora and Ubuntu package operations

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.