RPM Community Forums

Mailing List Message of <rpm-users>

Re: upgrading from rpm 4.4 to rpm 5

From: devzero2000 <pinto.elia@gmail.com>
Date: Mon 15 Dec 2008 - 18:30:41 CET
Message-ID: <b086760e0812150930s3bdb1b2ei7c9f5e464351dc43@mail.gmail.com>
On Sat, Dec 13, 2008 at 2:40 PM, Jeff Johnson <n3npq@mac.com> wrote:
> On Dec 13, 2008, at 2:50 AM, JD wrote:
>> How do I safely upgrade from rpm 4.4 to rpm 5
>> without destroying my current databse?
>> On one system, the rpm database has become unusable
>> after the upgrade.
>> To wit:
>> # rpm -qa
>> rpmdb: Program version 4.3 doesn't match environment version
>> error: db4 error(-30974) from dbenv->open: DB_VERSION_MISMATCH: Database
>> environment version mismatch
>> error: cannot open Packages index using db3 -  (-30974)
>> error: cannot open Packages database in /var/lib/rpm
> There's a version stamp in /var/lib/rpm/__db* files that is
> checked when a Berekeley DB dbenv is 1st opened.
> Remove the version stamp by doing
>        rm -f /var/lib/rpm/__db*
> will remedy. Entirely safe on a quiescent system (which is most
> usage cases for an rpmdb, rpm just doesn't run that often to worry).
>> How do I recover from this??
> BTW, rpm5 automates the removal action for the DB_VERSION_MISMATCH
> condition.
> But that only solves the issue with rpm-4.4.x -> rpm5 upgrades, the
> downgrade requires rpm-4.4.x to handle DB_VERSION_MISMATCH automagically.

This was covered by this Jeff patch

Received on Mon Dec 15 18:30:42 2008
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.