Re: database mess up

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Now, it is a total mess on my 2 machines !!!!!!!!!!!!!!!!!!!!
When I try:
 yumdownloader `sed -e "s/.rpm$//g" /root/rpmpkgs/rpmpkgs-20090111.backup
I just get:
No Match for argument abiword-2.6.5-1.fc10.i386

I cannot down lad any package


Hello,

For a reason that I ignore my database is totallt mess up.
rpm --rebuilddb only rebuild iy partially.
The packages are installed, but rpm --rebuilddb does not see them.
How can I recover them without resintalling them manually ?

Find the latest intact /var/log/rpmpkgs* file (ie one that got generated before the db got corrupted, file size should be a good indicator) and copy it somewhere safe, say /root/rpmpkgs.backup. Now you should be able to make fairly good recovery with something like:

# mv /var/lib/rpm /var/lib/rpm.busted
# mkdir /var/tmp/download; cd /var/tmp/download
# yumdownloader `sed -e "s/.rpm$//g" /root/rpmpkgs.backup`
# rpm -Uvh --notriggers --noscripts --justdb *.rpm

The question of course is, what got the database corrupted to begin with.
Did anything out of the ordinary happen at that time, like /var getting full? Segfaults logged in /var/log/messages*? What filesystem is /var on?

	- Panu -



--
---
==========================================================================
 Patrick DUPRÉ                      |   |
 Department of Chemistry            |   |    Phone: (44)-(0)-1904-434384
 The University of York             |   |    Fax:   (44)-(0)-1904-432516
 Heslington                         |   |
 York YO10 5DD  United Kingdom      |   |    email: pd520@xxxxxxxxxx
==========================================================================
-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines

[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux