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"