[olug] Confused

Daniel G. Linder dlinder at iprevolution.net
Mon Sep 22 13:54:58 UTC 2003


Tom [mailto:huber28 at cox.net] wrote:
>  rpm -q gtk+-1.2.10-22.i386.rpm
> gives me "package not installed
> 
> rpm -qa | grep -i gtk+-1.2.10-22.i386.rpm
> runs for a bit then just gives another prompt,
> like it is doing something
> but nothing shows.

Well, it was running for a bit, but "grep" didn't show you anything
because there was no exact match.  When using grep and a long string
doesn't match, try shortening the string and trying again.

In this case, try doing this:

rpm -qa | grep -i gtk

The extra stuff -- "+-1.2.10-22.i386.rpm" -- are the version number
(1.2.10), the system architecture (i386), and the package type (rpm).
Most output from the run of "rpm -qa" looks like this:

$ rpm -qa | head
redhat-logos-1.1.3-1
cracklib-2.7-12
dosfstools-2.7-1
gdbm-1.8.0-10
ksymoops-2.4.1-1
mktemp-1.5-11
...and so on...

This shows that I have a program called "dosfstools" installed, version
2.7-12.  Note that the ".i386.rpm" is not shown at all so that is
probably the reason your grep command above didn't work.

Give the shorter version a try and go again.

Dan



More information about the OLUG mailing list