
Example 15.2
Script to Search for Packages
#! /bin/sh
for i in $(rpm -q -a -l | grep $1); do
echo "\"$i\" is in package:"
rpm -q -f $i
echo ""
done
The command
rpm -q --changelog rpm
displays a detailed list of change infor-
mation about a specific package, sorted by date. This example shows information about
the package
rpm
.
With the help of the installed RPM database, verification checks can be made. Initiate
these with
-V
,
-y
, or
--verify
. With this option,
rpm
shows all files in a package
that have been changed since installation.
rpm
uses eight character symbols to give
some hints about the following changes:
Table 15.2
RPM Verify Options
MD5 check sum
5
File size
S
Symbolic link
L
Modification time
T
Major and minor device numbers
D
Owner
U
Group
G
Mode (permissions and file type)
M
In the case of configuration files, the letter
c
is printed. For example, for changes to
/etc/wgetrc
(
wget
):
rpm -V wget
S.5....T c /etc/wgetrc
302
Installation and Administration
Содержание LINUX ENTERPRISE SERVER 10 - INSTALLATION AND ADMINISTRATION 11-05-2007
Страница 1: ...SUSE Linux Enterprise Server www novell com 10 May 11 2007 Installation and Administration...
Страница 14: ......
Страница 19: ...Part I Deployment...
Страница 20: ......
Страница 60: ......
Страница 128: ......
Страница 243: ...Part II Administration...
Страница 244: ......
Страница 274: ......
Страница 312: ......
Страница 348: ......
Страница 380: ......
Страница 381: ...Part III System...
Страница 382: ......
Страница 438: ......
Страница 452: ......
Страница 478: ......
Страница 486: ......
Страница 498: ......
Страница 512: ......
Страница 558: ......
Страница 559: ...Part IV Services...
Страница 560: ......
Страница 652: ......
Страница 670: ......
Страница 742: ......
Страница 754: ......
Страница 796: ......
Страница 817: ...Part V Security...
Страница 818: ......
Страница 858: ......
Страница 886: ......
Страница 910: ......
Страница 911: ...Part VI Troubleshooting...
Страница 912: ......
Страница 924: ......