RHEL installation file rpm

Source: Internet
Author: User
1. install # rpm-ivhfoo-1.0-l.i386.rpm2. uninstall installed software packages # rpm-efoo3. upgrade package # rpm-Uvhfoo-2.0-l.i386.rpm4. query package # rpm-qfoo5. verify the software package parameters:-a simple check for the existence of files in the software package -...

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.