Entry
Operating system: Linux: Installer: File: Check: How to view information about .rpm packages? [query
Feb 27th, 2004 03:14
Knud van Eeden,
----------------------------------------------------------------------
--- Knud van Eeden --- 24 November 2003 - 02:18 am -------------------
Operating system: Linux: Installer: File: Check: How to view
information about .rpm packages? [query]
---
Before doing your installation, you can use the rpm program
to get information about currently present rpm packages.
---
You can do so by using the -q parameter
(where 'Q' means query)
---
---
To get information about all already installed rpm packages, use the
command:
rpm -qa
or to show it one screen at a time, use:
rpm -qa | more
---
This will show e.g.
bzip2-libs-1.0.2-8
glib-1.2.10-10
losetup-2.11y-9
shadow-utils-4.0.3.6
MAKEDEV-3.3.2-5
findutils-4.1.7-9
modutils-2.4.22-8
...
So possibly first do this to get this overview of the rpm which
are already there.
---
---
To check for the presence an already installed individual package, use
e.g. a wildcard like '*'.
e.g.
rpm -qa b*
will show all packages with a name starting with a 'b'.
---
---
You can also use 'grep' to check for packages, for example
the 'bison' package:
rpm -qa | grep bison
could show 'bison-1.35-6'
---
---
If you just want to know if a package is installed, type:
rpm -q <your package name>
e.g.
rpm -q bison
could show as a result
bison-1.35-6
This indicates the currently installed version (=1.35) and build (=6),
and also that it indeed is installed.
---
---
To get specific information about an already installed rpm package
itself, use the command:
rpm -qi <your package name>
---
e.g.
rpm -qi gawk3.1.1-9.rpm
---
will show e.g. the following screen:
+---------------------------------------------------------------+
|Name: gawk |
| |
|Version: 3.1.1 |
| |
|Release : 9 |
| |
|Relocations: not relocatable |
| |
|Vendor: Red Hat, inc |
| |
|Build date: Sat 25 Jan 2003 03:00 AM CET |
| |
|Install date: Web 14 May 2003 02:57:00 CEST |
| |
|Build host: porky.devel@redhat.com |
| |
|Group: Applications / Text |
| |
|Source RPM: gawk-3.1.1-9.src.rpm |
| |
|Size: 3997493 |
| |
|License: GPL |
| |
|Signature: DSA / SHA1, Mon 24 Feb 2003 07:10:44 |
| key ID 219180cddb42a60e |
| |
|Packager: Red Hat, Inc. <http://bugzilla.redhat.com/bugzilla> |
| |
|Summary: the GNU version of the AWK text processing utility. |
| |
|Description: |
| |
|The gawk packages contains the GNU version of awk, a text |
|processing utility. |
|Awk interprets a special purpose programming language to |
|do quick an easy pattern matching and reformatting jobs. |
| |
|Install the gawk package if you need a text processing utility.|
| |
|Gawk is considered to be a standard Linux tool for processing |
|text. |
+---------------------------------------------------------------+
---
---
To view all the files owned by the package, use the command
rpm -ql <your package name>
e.g.
rpm -ql bison
will show a list of directories and files,
/usr/bin/bison
/usr/share/bison
...
/user/share/man/man1/bison.1.gz
---
---
for more information, type:
man rpm
---
---
Tested in:
Linux Red Hat v9
---
---
Internet: see also:
---
Operating system: Linux: Installation: File: Overview: Can you give me
an overview of installation?
http://www.faqts.com/knowledge_base/view.phtml/aid/29106/fid/107
----------------------------------------------------------------------