Red Hat Bugzilla – Bug 27435
Upgrade to RPM 4.0 wipes out RPM database
Last modified: 2007-04-18 12:31:27 EDT
From Bugzilla Helper:
User-Agent: Mozilla/4.73 [en] (X11; U; Linux 2.4.0-test8 i686)
I installed the RPM 4.0 distribution from ftp.rpm.org in the dist
directory. Problem is, as
soon as I install it the old RPM database is completely gone. rpm -qa shows
Trying to install any more RPMs fails because it keeps complaining about
Yes I did do an rpm --rebuilddb first.
This is on an otherwise standard Red Hat 6.2 Sparc install. I've seen the
same problem on LinuxPPC, using RPMs built from the SRPMS on the
The rpm.org site says this is the place to report bugs for rpm, so I'm
reporting it here.
Steps to Reproduce:
1. Take a Sparc running Red Hat 6.2
2. get popt, db3 and rpm from ftp.rpm.org/pub/rpm/dist/rpm-4.0.x. I got the
3. Install popt, db3 and rpm packages thus obtained
4. Try rpm -qa. All your package info is gone.
5. If you like try rpm --rebuilddb. Package info stays gone.
Actual Results: All the package info was gone. Also the files in
/var/lib/rpm are much smaller, so it does seem like installing rpm deleted
the old database.
Expected Results: Shouldn't have deleted my RPM databse.
I really wish someone had tested the package before releasing it. Once
would have been enough.
Your database is still there, I will send instructions in a moment.
FWIW, you will want to upgrade to rpm-4.0.1 from
if you wish to continue using rpm-4.0. Or go back to rpm-3.0.5, instructtions on
coming in a moment.