rpmdb crashed, how to repair? [FC3]

Jim Cornette fc-cornette at insight.rr.com
Sun Feb 5 22:19:14 UTC 2006


Gene Heskett wrote:

>> I should learn scripting instead of using ready-made scripts. Some day
>> maybe.
>>
>> Jim
> 
> ;-)  I hear that, Jim.  Me, at 71 I tend to furget, so I write scripts 
> that don't forget.  Yup, been there, done that. Several times...  And a 
> month later I may have forgotten the scripts name, and where I stashed 
> it.  I've heard that called CRS.
> 

Gene,
I was able to get a script that will show you the version information 
and also it has the ability to not show rpms which it is normally 
allowed to show more than one instance. Steve Grub and Villa Herva had 
the most to do with this script. I did a bit of removal for the 
mismatched portion and added user feedback echoed test to terminal. I 
attached this as a text file, but it is actually a script.

A problem with the script that Ville described was the possibility that 
fookernel and kernelfoo packages would also be excluded as being 
alright. I checked and this is true. Ville suggested something like
egrep "^ +[0123456789]+ +($dups)$"
be added to the script to prevent the possibility from happening.

Jim

-- 
The person who can smile when something goes wrong has thought of
someone to blame it on.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: find-dupes-jcm.sh.txt
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20060205/39dc3d3b/attachment-0001.txt>


More information about the fedora-list mailing list