It seems that you have some db 3.0 databases -- you must have been
caught in the middle of the db1 -> db3.0 -> db3.1 thing.  To migrate
to db 3.1, you'll need to change your database back to a db1 database,
then upgrade the rpm and db3 packages to db3.1, then migrate from db1
back to db3.  Here's how you do this:

with the rpm built against db3.0 (not 3.1), and with db3-3.0* installed:
rpm --rebuilddb --dbapi 3 --rebuilddbapi 1
rpm -Uvh rpm-*4.0-0.66* db3-3.1*
rpm --rebuilddb --dbapi 1 --rebuilddbapi 3
rpm --rebuilddb 
 (just to make sure everything is sane...)

Matt

On Fri, Aug 04, 2000 at 03:51:43PM +0200, Svante Signell wrote:
> How to convert the rpm database to version 3 vithout starting from
> scratch??
> 
> Current database:
> 
> $file /var/lib/rpm/Packages
> /var/lib/rpm/Packages: Berkeley DB 2.X Hash/Little Endian (Version 6, Logical 
>sequence number: file - 0, offset - 0, Bucket Size 8192, Overflow Point 2048, Last 
>Freed 162, Max Bucket 0, High Mask 0xfba, Low Mask 0x808, Fill Factor 965394758, 
>Number of Keys 0)
> 
> Current rpm (mix of 4.0-0.33 and cvs):
> $/bin/rpm-4.0cvs -q rpm
> rpm-4.0-0.56
> 
> Newly installed rpm:
> $rpm -qvvv rpm
> D: opening db index       /var/lib/rpm/Packages rdonly mode=0x0
> db3 error(-30990) performing db->open: DB_OLDVERSION: Database requires a version 
>upgrade
> 
> Installed DB's:
> $/bin/rpm-4.0cvs -q db1
> db1-1.85-1.3
> 
> $/bin/rpm-4.0cvs -q db2
> db2-2.4.14-2
> 
> $/bin/rpm-4.0cvs -q db3
> db3-3.1.14-2.2
> db3-3.0.55-0.12
> 
> 
> 
> _______________________________________________
> Redhat-devel-list mailing list
> [EMAIL PROTECTED]
> https://listman.redhat.com/mailman/listinfo/redhat-devel-list



_______________________________________________
Redhat-devel-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-devel-list

Reply via email to