Matt Giwer
16 years ago
I think I have read of this problem before and do not remember a solution.
What apparently happened was the power dropped when the rpm database was
being updated. I got corrupt files in the database directory and yum itself
was corrupted.
I did not take notes but this is the general process.
When you run yum and it fails due to being corrupted it will give you the
location of the database files. Go there. Make a directory such as yum-temp.
copy all the files from yum to yum-temp which will be only the good files.
move yum to yum-orig and move yum-temp to yum. Then do rpm --initdb and get a
cup of coffee. The needed database is available after your second coffee.
go to your installation disk and find the yum-x-x-x.rpm under Packages or
some such (I used Fedora 10)
rpm -e --nodeps yum [may need version which you can get from conflicts list]
You get the conflicts list by trying to install what you find on your
installation disk.
the --nodeps is the trick to removing only yum and none of the dependencies
and then
rpm -i yum-installation-disk
These two steps appear to be the same as the single
yum reinstall package.rpm
operation.
After this yum functions as expected. The first step is obviously
yum -y update yum
to get you back to where you were before the file was corrupted.
What apparently happened was the power dropped when the rpm database was
being updated. I got corrupt files in the database directory and yum itself
was corrupted.
I did not take notes but this is the general process.
When you run yum and it fails due to being corrupted it will give you the
location of the database files. Go there. Make a directory such as yum-temp.
copy all the files from yum to yum-temp which will be only the good files.
move yum to yum-orig and move yum-temp to yum. Then do rpm --initdb and get a
cup of coffee. The needed database is available after your second coffee.
go to your installation disk and find the yum-x-x-x.rpm under Packages or
some such (I used Fedora 10)
rpm -e --nodeps yum [may need version which you can get from conflicts list]
You get the conflicts list by trying to install what you find on your
installation disk.
the --nodeps is the trick to removing only yum and none of the dependencies
and then
rpm -i yum-installation-disk
These two steps appear to be the same as the single
yum reinstall package.rpm
operation.
After this yum functions as expected. The first step is obviously
yum -y update yum
to get you back to where you were before the file was corrupted.
--
It ain't covering a war unless you see the blood.
-- The Iron Webmaster, 4100
http://www.giwersworld.org/holo/nizgas3.html a4
Mon Jan 26 05:24:41 EST 2009
It ain't covering a war unless you see the blood.
-- The Iron Webmaster, 4100
http://www.giwersworld.org/holo/nizgas3.html a4
Mon Jan 26 05:24:41 EST 2009