Google
  Web www.spinics.net

Re: YUM Errors !!

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


On Wed, 2007-02-21 at 10:15 -0800, Rick Stevens wrote:
> On Tue, 2007-02-20 at 18:39 -0500, Micros50 wrote:
> > On Mon, 2007-02-19 at 09:44 -0800, Rick Stevens wrote:
> > > On Sat, 2007-02-17 at 17:11 -0500, mylar wrote:
> > > > Hello, I recently installed FC6 on my machine to replace an aging
> > > 
> 
> There is a failure mode where the db files are so corrupt that rpm can't
> fix them.  When that happens, you must delete the db files and run the
> "--rebuilddb".  Because you really don't know when you need to do that,
> I always delete them.  In actual fact, I wrote an "SLS" (stupid little
> script) that does it:
> 
> 	[root@prophead ~]# ls -l /usr/local/bin/fixrpmdb
> 	-rwxr-xr-x 1 root root 345 Jan 22  2004 fixrpmdb
> 
> 	[root@prophead ~]# cat /usr/local/bin/fixrpmdb
> 	#!/bin/bash
> 	# fixrpmdb - Clean up RPM database weirdness
> 	# Rick Stevens, VitalStream, Inc., 22 January 2004
> 	# First, delete the RPM database files since they may be
> 	# beyond help...
> 	rm -f /var/lib/rpm/__db.*
> 	# Now, rebuild the RPM database...
> 	echo -n "Rebuilding RPM database, do NOT interrupt..."
> 	rpm --rebuilddb
> 	echo "Rebuild complete"
> 	exit 0
> 
> Feel free to use it.
> 

Thanks, I'll keep that little shell script handy in the event I should
ever run into this problem again.

mylar

-- 
email-> micros50@xxxxxxxxxxxx
Website-> http://home.computer.net/~micros50/n2ize_index.html

"I Speak Mathematics"

_______________________________________________
Redhat-install-list mailing list
Redhat-install-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/redhat-install-list
To Unsubscribe Go To ABOVE URL or send a message to:
redhat-install-list-request@xxxxxxxxxx
Subject: unsubscribe

[Home]     [Fedora Users]     [Red Hat General]     [Red Hat Watch List]     [Red Hat Development]     [Samba List]     [Kernel List]     [Kernel Newbies]     [Hot Springs]     [Yosemite News]

Powered by Linux