Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Red Hat This forum is for the discussion of Red Hat Linux.


  Search this Thread
Old 09-17-2003, 08:29 AM   #1
LQ Newbie
Registered: Jul 2003
Posts: 17

Rep: Reputation: 0
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?
Old 09-17-2003, 10:39 AM   #2
Senior Member
Registered: Feb 2001
Location: Montreal, Quebec, Canada
Distribution: RedHat, Fedora, CentOS, SUSE
Posts: 1,403

Rep: Reputation: 46
If you want to query the RPM database for a pattern, type:
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:
rpm -Rf /var/lib/rpm/__db*
rpm -vv --rebuilddb


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
I lost my rpm database Janneman Red Hat 6 12-15-2004 12:46 PM
RPM database, help! Thetargos Fedora 2 07-30-2004 05:47 PM
Can't rebuild RPM database tawalker Linux - Software 3 04-22-2004 04:17 AM
rpm database palmmjsg23 Linux - General 6 03-09-2004 11:58 PM
Creating an RPM database Null Linux - Software 6 03-20-2003 06:09 PM > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 08:25 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration