RHEL Installation File rpm

Source: Internet
Author: User

1. Install
# Rpm-ivh foo-1.0-l.i386.rpm
2. Uninstall installed software packages
# Rpm-e foo
3. Upgrade the Software Package
# Rpm-Uvh foo-2.0-l.i386.rpm
4. query the Software Package
# Rpm-q foo
5. Verify the Software Package
Parameters:
-A: Check whether the file in the software package exists.
-B. Verify a single file in the software package.
-C. Verify all installed software packages
-D: compare a source package with an installed package.


Parameters:
-A: Query all software packages installed by the system.
-F. The file name query contains the package of the GA file.
-F is the same as the-f parameter, but the input is a standard input (for example, find/usr/bin | rpm-qF)
-Q: The software package name.
-Q is the same as-p parameter, but the input is standard (for example, find/mnt/cdrom/RedHat/RPMS | rpm-qQ)

The output format is as follows:
-I displays the software package name, description, release, size, compilation date, installation date, and developer information.
-L display the files contained in the Software Package
-S: displays the current status of the file contained in the package. There are only two statuses: normal and missing.
-D: displays the documents in the software package (such as man, info, and README)
-C: displays the configuration files in the software package. These files must be manually modified after installation, such as sendmail. cf, passwd, and inittab.

Author "ANT"
 

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.