Prev | Current Page 668 | Next

Christopher Negus

"Linux Bible, 2008 Edition: Boot up to Ubuntu, Fedora, KNOPPIX, Debian, openSUSE, and 11 Other Distributions"

The -U says to upgrade the package.)
 Querying the RPM database??”One of the best features of the RPM facility is that you
can find out a lot of information about the software packages that are installed. The query
option (-q) lets you list package names, descriptions, and contents in various ways. Here
are a few examples:
# rpm -qa xmms
# rpm -ql xmms | less
# rpm -qi xmms | less
The first example (-qa) searches for the xmms package and reports the current version
of the package that is installed. In the second, -ql lists all files in the xmms package and
then pipes that output to the less command to page through it. And finally, -qi displays
a description and other information about the xmms package.
 Verifying installed packages??”Use rpm to verify the contents of an RPM package. The
-V option enables you to check whether any of the files in a package have been tampered
with. Here is an example:
# rpm -V aaa_base
..5....T c /etc/inittab
S.5....T /etc/profile.d/alias.ash
-V checks whether any of the contents of the aaa_base package (which contains some basic
system configuration files) have been modified. The output shows that the inittab and
alias.ash files have been modified from the originals. The 5 indicates that the md5sum
of the files differ, while the T indicates that the timestamp on the file differs.


Pages:
656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680