Re: rpmdb crashed, how to repair? [FC3]

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

 



On Saturday 04 February 2006 20:29, Sam Varshavchik wrote:
> Danny Terweij - Net Tuning | Net writes:
> > Hi there,
> >
> > While running a yum update the hdd did get an error and the system was
> > remounted in read only mode.
> >
> > The error seems gone, but the rpmdb is not fine anymore, i did do
> > rpm --rebuilddb
> > But now i get weird errors with installing packages, like dupes or
> > already installed (but it is not).
> >
> >
> > How do i create a new rpmdb with current installed packages?
> >
> > Or am i doomed? :)
>
> An hdd error means - kiss your data good bye.
>
> Salvage whatever data files you need, take the hard drive and throw it in
> the trash.

--->First read the man and info pages for these commands so you <---
--->understand what is being done (if you already don't ).<----

--> If the drive is failing Yes dump it <--

      But if not---
You can force updates and installs 

->rpm -Uvh --force --nodeps filename.rpm

If that doesn't work  move each into a clean directory
(I.E. mkdir 1 etc.), then;

->rpm2cpio libbeecrypt6-4.1.2-9.1_10.rhfc4.at.i386.rpm | cpio -iv 
--make-directories .  #note '.' for current dir.

->mv -f  file /to/the/proper/dir 
# the rpm2cpio will make subdirectories in the 'clean' directories you made.

After all this fun then you need to go back and;

->rpm -Uvh --force --nodeps filename.rpm 
# to cause rpm to recognize that the package is installed.

->rpm --rebuilddb
( There are possibly simpler ways but this does work-- I have done this myself 
to fix rpm -the package manager, yum and apt-get from a broken version 
upgrade)

Anyone have a better way I would like to hear it also.
-- 
Some people have convictions.
Some people have opinions
I think I'll have a cheeseburger!


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux