From: Sven Garly on
I'm using RPM on an embedded ARM system and am having some problems
with the RPM database created on the host.

I can create the rootfs with the following:
# rpm --initdb --root /embeddedroot
# rpm --root /embeddedroot -ivh rpm1.rpm rpm2.rpm rpm3.rpm --force-
debian --ignorearch

When I boot the board and query the RPM database I get the following:
# 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
# rm __db.00*
# rpm -qa
rpmdb: /var/lib/rpm/Packages: unsupported hash version: 9
error: cannot open Packages index using db3 - Invalid argument (22)
error: cannot open Packages database in /var/lib/rpm

The embedded system has RPM 4.4.2.2 and the host system (Ubuntu 9.10)
4.7.0 (I've previously tried Fedora 11 - 4.7.1? - with similar
results). Host and target both have db4 4.7.25.

Any thoughts about how I can create a suitable RPM database on the
host?

--
Sven