[olug] Confused

Vincent.Raffensberger at dtn.com Vincent.Raffensberger at dtn.com
Mon Sep 22 15:23:22 UTC 2003


You may want to try rebuilding your rpm database.  Here are the commands:


killall -9 rpm rpmb rpmd rpme rpmi rpmk rpmq rpmt rpmu rpmv
rm -rf /var/lib/rpm*.* /var/lib/rpm/__db* /var/lib/rpmrebuilddb*.*
rpm -vv --rebuilddb




"Daniel G. Linder" <dlinder at iprevolution.net> 
Sent by: olug-bounces at olug.org
09/22/2003 08:54 AM
Please respond to
Omaha Linux User Group <olug at olug.org>


To
"Omaha Linux User Group" <olug at olug.org>
cc

Subject
RE: [olug] Confused







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

_______________________________________________
OLUG mailing list
OLUG at olug.org
http://lists.olug.org/mailman/listinfo/olug




More information about the OLUG mailing list