Sunday, April 17, 2005

RPM queries

To see all installed RPMs, do a:

[root@server bin]# rpm -qa

To see where e.g. /bin/mail came from do a:

[root@server bin]# rpm -qf /bin/mail
mailx-8.1.1-31.1

To see verbose info on an rpm, do a e.g.:

[root@server bin]# rpm -qi mailx
Name : mailx Relocations: (not relocateable)
Version : 8.1.1 Vendor: Red Hat, Inc.
Release : 31.1 Build Date: Fri 01 Aug 2003 01:39:48 PM PDT
Install Date: Tue 02 Dec 2003 12:26:05 AM PST Build Host: daffy.perf.redhat.com
Group : Applications/Internet Source RPM: mailx-8.1.1-31.1.src.rpm
Size : 80381 License: BSD
Signature : DSA/SHA1, Tue 28 Oct 2003 03:55:12 PM PST, Key ID b44269d04f2a6fd2
Packager : Red Hat, Inc.
Summary : The /bin/mail program for sending quick email messages.
Description :
The mailx package installs the /bin/mail program, which is used to
send quick email messages without opening up a full-featured
mail user agent. Mailx is often used in shell scripts.

Do -ql to see all files contained in the rpm:

[root@server bin]# rpm -ql !$
rpm -ql mailx
/bin/mail
/etc/mail.rc
/usr/bin/Mail
/usr/lib/mail.help
/usr/lib/mail.tildehelp
/usr/share/man/man1/Mail.1.gz
/usr/share/man/man1/mail.1.gz

No comments: