Jump to content

TR-03: How can I rebuild my RPM databases?


Recommended Posts

Browse: [About the FAQ Forum] [Table of Contents] [FAQs] [Contribute] [RPM: About rpm usage (urpmi, rpmbuild...)]

 

TR-03: How can I rebuild my RPM databases?

 

Sometimes you try to add a new package using RPM or URPMI and end up getting a database error or some other "odd" error. Usually the first thing you should try to do is rebuild your RPM database. Here's a simple one liner to do so..

 

rm -f /var/lib/rpm/__db* && rpm --rebuilddb

 

This command will remove the database files and then issue a database rebuild command.

Link to comment
Share on other sites

 Share

×
×
  • Create New...