On Wed, Aug 14, 2002 at 02:25:35PM -0500, whitroth wrote:
> Hi.
> 
> Runnig 6.2 on my firewall, no X, went to apply patches, etc, and
> wanted to start using up2date...and realized that when my second
> hard drive crashed, months ago, taking *all* of /var with it, that
> the rpm database is gone.
> 
> So, short of re-installing RH, is there any way to recreate it?
> 
> Yes, I've done initdb, and rebuilddb, which give me a lovely empty db....

Having been through something similar a while back, my conclusion is
'no, there is no easy way out'. So now I back up all the /var/lib/rmp
stuff :) 

I didn't go the re-install route, since I had a lot of non-RH
packages, and wasn't sure I could remember those. So what I did,
re-install all the beefy stuff (glibc, gcc*, etc), and anything
obvious off the CD (man pages, init scripts, etc). Factor in updates and
do those first. For me this got maybe 80-90% of it back. Then wrote a
short script to 'rpm -qf' every file on the system, and grepped for
those that it failed on (sorted and uniq'd), and then checked all
those. Some were obvious, some not. 

Maybe there is a quicker/slicker way that somebody knows about now. If
its a stock install, re-install would be faster.

-- 
Hal Burgiss
 



-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to