RE: Problems with rpm

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

 



Hi,

 The problem does happen sometime, the following steps help most of the
time:

1, kill all the rpm* and yum processes on the machine. Make sure not a
single process is accessing rpm database.

2, save the /var/lib/rpm/ directory to somewhere else in case the
following operations screwed the rpm database even worse. 

	rsync -avH /var/lib/rpm/ /var/lib/rpm_SAVE/

3, remove the __db* files from under /var/lib/rpm/

	rm -rf /var/lib/rpm/__db*

4, initialize the rpm database.

      rpm --initdb

5, rebuild the rpm database.

	rpm --rebuilddb

6, test/confirm that rpm database is recovered from corruption.

      rpm -qa |less

7, If the above operations doesn't work for you, recover the
/var/lib/rpm/ from your saved copy. And ask for further help.

      rsync -avH --delete /var/lib/rpm_SAVE/ /var/lib/rpm/

Good luck.

--Guolin

-----Original Message-----
From: fedora-list-bounces@xxxxxxxxxx
[mailto:fedora-list-bounces@xxxxxxxxxx] On Behalf Of Don Levey
Sent: Thursday, January 11, 2007 11:39 AM
To: For users of Fedora
Subject: RE: Problems with rpm

fedora-list-bounces@xxxxxxxxxx wrote:
> I'm having problems with rpm. I have not been able to do any type of
> queries on the rpm database. It just hangs. So, I had the bright, or
> maybe not so bright, idea of doing rpm --rebuilddb. Unfortunately,
> it's
> also doing nothing. It's been running for a while, over 2 hours, and
> if
> I look at the process it doesn't appear to be doing anything.
>
> #ps -ewf | grep rpm
> root     27852 21467  0 12:25 pts/4    00:00:00 /usr/lib/rpm/rpmd
> --rebuilddb
>
> Any suggestions?
>
> Thanks,
> James

I am getting something similar.  It was suggested to me that I reboot
(the
old Microsoft three-fingered salute) to clear whatever stuck process is
out
there.  I've not yet gotten home to do so, and was hoping to find out
*which* process it was, but if you're able to reboot and report back
that
would probably help.
 -Don

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list

[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux