Mailinglist Archive: opensuse (929 mails)

< Previous Next >
Re: [opensuse] Help - rpm - error: no dbpath has been set - howto fix?
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

В Mon, 17 Mar 2014 11:40:25 -0500
"David C. Rankin" <drankinatty@xxxxxxxxxxxxxxxxxx> пишет:


Andrey, thanks. We are getting somewhere:

[11:34 alchemy:~] # rpm --dbpath=/var/lib/rpm -qa
error: dbiOpen: dbapi 1 not available
error: cannot open Packages database in /var/lib/rpm
error: dbiOpen: dbapi 1 not available
error: cannot open Packages database in /var/lib/rpm

[11:35 alchemy:~] # rpm --showrc | grep dbpath
{shows nothing}


Well, looks like the most part is gone:

bor@opensuse:~/src/grub> grep -r dbpath /usr/lib/rpm
/usr/lib/rpm/macros:%_dbpath %{_var}/lib/rpm
/usr/lib/rpm/macros:%_dbpath_rebuild %{_dbpath}
/usr/lib/rpm/macros:%_keyringpath %{_dbpath}/pubkeys/
/usr/lib/rpm/macros:%_rpmlock_path %{_dbpath}/.rpm.lock


You could download RPM with these files and simply extract content
using rpm2cpio (or reinstall using rpm --dbpath):

bor@opensuse:~/src/grub> rpm -qf /usr/lib/rpm/macros
rpm-4.11.1-6.5.1.x86_64
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (GNU/Linux)

iEYEARECAAYFAlMnJ2wACgkQR6LMutpd94zkXgCfeHt5uG1aczyKLFO4qyolkZfe
cekAn0bpzgHDXtwJCUcW18pftFRQiFng
=lh9C
-----END PGP SIGNATURE-----
< Previous Next >