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"