Brief summary of Linux RPM Package installation, update, and deletion commands

Source: Internet
Author: User
This article briefly summarizes the commonly used commands for Linux RPM Package installation, update, and deletion. For more information, see
Copy codeThe code is as follows:
Rpm-ivh package. rpm install an rpm package
Rpm-ivh -- nodeeps package. rpm installs an rpm package and ignores dependency warnings.
Rpm-U package. rpm updates an rpm package but does not change its configuration file
Rpm-F package. rpm updates an rpm package that has been installed.
Rpm-e package_name.rpm delete an rpm Package
Rpm-qa: displays all installed rpm packages in the system
Rpm-qa | grep httpd: displays all rpm packages whose names contain the words "httpd ".
Rpm-qi package_name: obtains special information about an installed package.
Rpm-qg "System Environment/Daemons" displays the rpm package of a component
Rpm-ql package_name: displays the list of files provided by an installed rpm package.
Rpm-qc package_name: displays the list of configuration files provided by an installed rpm package.
Rpm-q package_name -- whatrequires: displays a list of dependencies with an rpm package.
Rpm-q package_name -- whatprovides displays the volume of an rpm Package
Rpm-q package_name -- scripts displays the script executed during installation/deletion l
Rpm-q package_name -- changelog displays the modification history of an rpm package.
Rpm-qf/etc/httpd/conf/httpd. conf: confirm which rpm package provides the file.
Rpm-qp package. rpm-l displays the list of files provided by an uninstalled rpm package
Rpm -- import/media/cdrom/RPM-GPG-KEY import public key digital certificate
Rpm -- checksig package. rpm verify the integrity of an rpm package
Rpm-qa gpg-pubkey verify the integrity of all installed rpm packages
Rpm-V package_name check file size, license, type, owner, group, MD5 check, and last modification time
Rpm-Va check all installed rpm packages in the system-use with caution
Rpm-Vp package. rpm confirm that an rpm package is not installed
Rpm2cpio package. rpm | cpio -- extract -- make-directories * bin * run executable files from an rpm package
Rpm-ivh/usr/src/redhat/RPMS/'arch '/package. rpm install a build package from an rpm source code
Rpmbuild -- rebuild package_name.src.rpm build an rpm package from an rpm source code

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.