[Rpm-maint] [rpm-software-management/rpm] Newer rpm can't read older rpm database (Issue #2426)
Craig Andrews
notifications at github.com
Sat Mar 11 02:35:57 UTC 2023
I figured out my problem: [In fedora 36, the rpm dbpath changed from `/var/lib/rpm` to `/usr/lib/sysimage/rpm`](https://fedoraproject.org/wiki/Changes/RelocateRPMToUsr).
To demonstrate the fact that using the correct dbpath works:
`ID="$(podman create registry.access.redhat.com/ubi8/ubi:latest)" && DIR="$(podman mount $ID)" && rpm --root "$DIR" --dbpath=/var/lib/rpm -q bash && podman rm -f "$ID"` returns `bash-4.4.20-4.el8_6.x86_64` when run on my fedora 38 system.
--
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/2426#issuecomment-1464800064
You are receiving this because you are subscribed to this thread.
Message ID: <rpm-software-management/rpm/issues/2426/1464800064 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20230310/5da08ab9/attachment.html>
More information about the Rpm-maint
mailing list