LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Red Hat (https://www.linuxquestions.org/questions/red-hat-31/)
-   -   RH rpm database (https://www.linuxquestions.org/questions/red-hat-31/rh-rpm-database-93761/)

gfyspf 09-17-2003 08:29 AM

RH rpm database
 
I have a computer running RH 8 and the rpm database is completely messed up.

If I try to install the new up2date rpm I get the message saying the rpm is already installed. If I try removing it with the -e I get the message the rpm doesn't exist in the database.

I have tried rebuilding the database: rpm --rebuilddb and rpm --initdb. But these don't seem to do anything.

If I do an rpm -Uvh --force xxxx.rpm this doesn't seem to help either.

The up2date rpm is not the only one I am having problems with. Is there any way to manually go in an update the database? Or completely reload the database?

Mathieu 09-17-2003 10:39 AM

If you want to query the RPM database for a pattern, type:
Code:

rpm -qa | grep word
To remove a RPM, use the output of the previous command (notice it does not have the .i386.rpm at the end).

To rebuild your RPM database, type:
Code:

rpm -Rf /var/lib/rpm/__db*
rpm -vv --rebuilddb



All times are GMT -5. The time now is 11:13 AM.