Red Hat ENTERPRISE LINUX 3 System Administration Manual page 124

Hide thumbs Also See for ENTERPRISE LINUX 3:
Table of Contents

Advertisement

108
rpm -Fvh *.rpm
RPM automatically upgrades only those packages that are already installed.
16.2.6. Querying
Use the
command to query the database of installed packages. The
rpm -q
displays the package name, version, and release number of the installed package foo:
foo-2.0-1
Note
Notice that we used the package name
actual package name.
Instead of specifying the package name, you can use the following options with
package(s) you want to query. These are called Package Specification Options.
queries all currently installed packages.
-a
queries the package which owns
-f
file
<
>
the full path of the file (for example,
-p
packagefile
<
There are a number of ways to specify what information to display about queried packages. The
following options are used to select the type of information for which you are searching. These are
called Information Selection Options.
displays package information including name, description, release, size, build date, install date,
-i
vendor, and other miscellaneous information.
displays the list of files that the package contains.
-l
displays the state of all the files in the package.
-s
displays a list of files marked as documentation (man pages, info pages, READMEs, etc.).
-d
displays a list of files marked as configuration files. These are the files you change after in-
-c
stallation to adapt the package to your system (for example,
etc.).
For the options that display lists of files, you can add
familiar
format.
ls -l
16.2.7. Verifying
Verifying a package compares information about files installed from a package with the same in-
formation from the original package. Among other things, verifying compares the size, MD5 sum,
permissions, type, owner, and group of each file.
The command
rpm -V
for querying to specify the packages you wish to verify. A simple use of verifying is
/usr/bin/ls
queries the package
>
verifies a package. You can use any of the Package Selection Options listed
Chapter 16. Package Management with RPM
. To query a package, you need to replace
foo
. When specifying a file, you must specify
< file >
).
.
< packagefile >
to the command to display the lists in a
-v
rpm -q foo
-q
,
sendmail.cf
passwd
command
with the
foo
to specify the
,
,
inittab
,
rpm -V foo

Advertisement

Table of Contents
loading

Table of Contents