[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [cobalt-users] A little OT: How can I look what files a *.rpm is containing?
- Subject: RE: [cobalt-users] A little OT: How can I look what files a *.rpm is containing?
- From: "Colin J. Raven" <cjraven@xxxxxxxxxxx>
- Date: Mon Jul 16 22:53:02 2001
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
> this might be a little OT. However; id like to see the content of a *.rpm
> file before installing on my Qube2.
Well since it relates to a Cobalt product it isn't OT at all! :-)
> Anybody knows, what crappy comman line
> arguments I have to use for?
gentle chide mode=ON
Oh c'mon...the CLI *is* Linux and Unix. The really exciting stuff is all
done via the command line interface.
OK...from Redhat documentation (what I have available on this machine may
not be too up to date, but some of this stuff hasn't changed from Day1)
<snip>
Querying the database of installed packages is accomplished with rpm -q. A
simple use is rpm -q foo which will print the package name, version, and
release number of the installed package foo:
$ rpm -q foo
rpm-2.0-1
Instead of specifying the package name, you can use the following options
with -q to specify what package(s) you want to query. These are called
Package Specification Options.
-a queries all currently installed packages.
-f <file> will query the package owning <file>.
-F is the same as -f except it takes filenames via stdin (e.g. find /usr/bin
| rpm -qF).
-p <packagefile> queries the package <packagefile>.
-P is like -p except it takes package filenames from stdin (e.g. find
/mnt/cdrom/RedHat/RPMS | rpm -qP).
There are a number of ways to specify what information to display about
queried packages. The following options are used to select the information
you are interested in. These are called Information Selection Options.
-i displays package information such as name, description, release, size,
build date, install date, vendor, and other miscellaneous information.
-l displays the list of files that the package ``owns''.
-s displays the state of all the files in the package. There are only two
possible states, normal and missing.
-d displays a list of files marked as documentation (man pages, info pages,
README's, etc).
-c displays a list of files marked as configuration files. These are the
files you change after installation to adapt the package to your system
(sendmail.cf, passwd, inittab, etc).
For those options that display file lists, you can add -v to your command
line to get the lists in a familiar ls -l format.
Grateful thanks to Red Hat Software for the above documentation.
HTH & Regards,
-Colin
--
Colin J. Raven