I have an installed RPM database (in a chrooted environment) which seems
to work. I can do stuff like;
rpm -i package.rpm --root /tmp/chroot
all lovely.
rpm -qa --root /tmp/chroot
lists it back for me. However, when I do
# chroot /tmp/chroot
bash-2.04# rpm -qa
error: unrecognized db option: "db3" ignored.
error: cannot open Packages index using db1 - No such file or directory (2)
bash-2.04# rpm --rebuilddb
error: unrecognized db option: "db3" ignored.
error: unrecognized db option: "db3" ignored.
error: unrecognized db option: "db3" ignored.
error: cannot open Name index using db1 - Invalid argument (22)
error: unrecognized db option: "db3" ignored.
error: cannot open Basenames index using db1 - Invalid argument (22)
error: unrecognized db option: "db3" ignored.
error: cannot open Group index using db1 - Invalid argument (22)
error: unrecognized db option: "db3" ignored.
error: cannot open Requirename index using db1 - Invalid argument (22)
error: unrecognized db option: "db3" ignored.
error: cannot open Providename index using db1 - Invalid argument (22)
error: unrecognized db option: "db3" ignored.
error: cannot open Dirnames index using db1 - Invalid argument (22)
error: unrecognized db option: "db3" ignored.
error: cannot open Requireversion index using db1 - Invalid argument (22)
error: unrecognized db option: "db3" ignored.
error: cannot open Provideversion index using db1 - Invalid argument (22)
error: unrecognized db option: "db3" ignored.
error: cannot open Installtid index using db1 - Invalid argument (22)
error: unrecognized db option: "db3" ignored.
error: unrecognized db option: "db3" ignored.
[ repeat hundreds of times ]
# rpm -qa
[ nice pretty output ]
However, the --rebuilddb seems to make up a /var/lib/rpm/packages.rpm -
which is the old "rpm dbv1" format. Bah. Any idea why this would be ?
John
--
_______________________________________
John Looney Chief Scientist
a n t e f a c t o t: +353 1 8586004
www.antefacto.com f: +353 1 8586014
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!