Accidentally deleted contents of /var/lib/ (Dale Sykora)

Saurabh Barve sa at atmos.colostate.edu
Wed Mar 16 22:22:55 UTC 2005


Saurabh Barve wrote:

 >> Hi,
 >>
 >> I am running FC2. I accidentally deleted the entire contents of my
 >> /var/lib/ directory. As a result, rpm -qa shows up nothing. Also, the


 >>>>Saurabh,
 >>>>	You might be able to get a pkg list from /var/log/yum.log or
 >>>>/var/log/rpmpkgs and then update/reinstall these packages.  I'm not 
 >>>>sure if it will work, but it may be worth a try.

 >>>>Thanks,

 >>>>Dale


Hi,

I copied over the entire /var/lib directory from another machine that 
was configured like this machine. I then did 'rpm --rebuilddb'. I then 
got a whole list of packages with 'rpm -qa'. I was also able to get my 
partitions exported using nfs. However, I don't know if the rpm database 
has been restored to its original self. I did a diff between 
/var/lib/rpm/Packages and /var/log/yum.log, and they differ. Am I right 
in comparing the two?

I also ran 'up2date --update' and 'yum update' just in case, and while 
up2date didn't update anything, yum returned one update, which I thought 
normal (it updated ethereal).

Is there anything else I need to do to bring the system back in its 
original condition? Maybe reboot it?

Thanks for all the help so far.

Saurabh.





-------------- next part --------------
A non-text attachment was scrubbed...
Name: sa.vcf
Type: text/x-vcard
Size: 323 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20050316/cc098db3/attachment-0001.vcf>


More information about the fedora-list mailing list