Linux-Noob Forums
can't up2date ? rpms database broken ? - Printable Version

+- Linux-Noob Forums (https://www.linux-noob.com/forums)
+-- Forum: Linux Noob (https://www.linux-noob.com/forums/forum-3.html)
+--- Forum: Tips and Tricks (https://www.linux-noob.com/forums/forum-59.html)
+---- Forum: Updating Linux (https://www.linux-noob.com/forums/forum-25.html)
+---- Thread: can't up2date ? rpms database broken ? (/thread-3609.html)



can't up2date ? rpms database broken ? - anyweb - 2004-02-20


if you have problems running up2date, and you are advised to clear your rpm database heres how

 

as root

 

 

 



Code:
[root@localhost root]#  rm -f /var/lib/rpm/__db*




 

then

 

 

 



Code:
[root@localhost root]# rpm -vv --rebuilddb




 

once done, try running up2date again

 

cheers

 

anyweb




can't up2date ? rpms database broken ? - AsProductions - 2005-03-24

I thought it recommended to start using the yum system as opposed to up2date?



can't up2date ? rpms database broken ? - znx - 2005-03-24

maybe even apt ? [img]<___base_url___>/uploads/emoticons/default_rolleyes.gif[/img]



can't up2date ? rpms database broken ? - zepcom - 2006-05-18


Quote:I thought it recommended to start using the yum system as opposed to up2date?
 

 

apt-get and yum are superior replacements for RPM by handling all the pre-requisites for you (one command does it all) but on some older linuxes, apt-get and yum do not work very well. This is fine for debian (apt) and centos/fedora/redhatenterprise (yum) but older distros may have issues...

 

It's a great recommendation, and worked on a RedHat9 box that I was about to rebuild. Probably still should rebuild it, but the need isn't as high now that I fixed the RPM database!!

 

Thanks for the tip!!

 

--zepcom :P