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]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux