YUM Errors !!
mylar
micros50 at verizon.net
Wed Feb 21 20:12:54 UTC 2007
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 at prophead ~]# ls -l /usr/local/bin/fixrpmdb
> -rwxr-xr-x 1 root root 345 Jan 22 2004 fixrpmdb
>
> [root at 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 at computer.net
Website-> http://home.computer.net/~micros50/n2ize_index.html
"I Speak Mathematics"
More information about the Redhat-install-list
mailing list