Mailinglist Archive: opensuse (4237 mails)

< Previous Next >
Re: [SLE] Clearing rpm database
  • From: Randall R Schulz <rschulz@xxxxxxxxx>
  • Date: Sun, 1 Aug 2004 18:28:42 -0700
  • Message-id: <200408011828.42372.rschulz@xxxxxxxxx>

On Sunday 01 August 2004 18:13, Philip Washington wrote:
> How do you clear and rebuild the rpm database on Suse 9.1?
> I have been unable to install some rpm's and someone indicated that the
> rpm database may be corrupt.

The online documentation is your friend. According to "man rpm", what you
want is "rpm --initdb" or "rpm --rebuilddb", probably "--rebuilddb":

Excerpting from the output of "man rpm":

The general form of an rpm rebuild database command is
rpm {--initdb|--rebuilddb} [-v] [--dbpath DIRECTORY] [--root DIRECTORY]

Use --initdb to create a new database, use --rebuilddb to rebuild the
database indices from the installed package headers.

Randall Schulz

< Previous Next >
Follow Ups