On 10/12/25 10:08 PM, Franta Hanzlík via users wrote:
Another thing, I don't know if it might be of any significance: on
another machine of mine, where a dnf upgrade was done a few months ago,
/var/lib/rpm is a symlink to ../../usr/lib/sysimage/rpm.

That seems like what it should be.

On this problematic one, /var/lib/rpm is a normal directory and contains:

# ls -lia /var/lib/rpm
total 609520
262152 drwxr-xr-x.   2 root root      4096 Nov 28  2023 .
262146 drwxr-xr-x. 117 root root      4096 Oct 12 23:21 ..
263688 -rw-r--r--.   1 root root         0 Jun 15  2024 .migratedb
262153 -rw-r--r--.   1 root root 624103424 Jul 25  2024 rpmdb.sqlite
262155 -rw-r--r--.   1 root root     32768 Oct 12 12:50 rpmdb.sqlite-shm
262154 -rw-r--r--.   1 root root         0 Jul 25  2024 rpmdb.sqlite-wal
264701 -rw-r--r--.   1 root root         0 Nov 28  2023 .rpm.lock

Those are old, except for the "-shm" file, so that's really weird.

Normal directory /usr/lib/sysimage/rpm/ exist too and contains:

# ls -lia /usr/lib/sysimage/rpm/
total 306124
2621474 drwxr-xr-x. 2 root root      4096 Oct 12 12:50 .
2621660 drwxr-xr-x. 5 root root      4096 Oct 12 23:10 ..
2621641 -rw-r--r--. 1 root root 313425920 Oct 12 12:50 rpmdb.sqlite
2622120 -rw-r--r--. 1 root root     32768 Oct 12 23:22 rpmdb.sqlite-shm
2621650 -rw-r--r--. 1 root root         0 Oct 12 12:50 rpmdb.sqlite-wal

but it seems no difference between with rpm queries with '--dbpath 
/usr/lib/sysimage/rpm'
and '--dbpath /var/lib/rpm'
Try moving /var/lib/rpm somewhere else, make the symlink, and see what you get.

If you check the upgrade log, is there anything there that would be relevant.

After making the symlink, you could try the upgrade again. I expect there will a very large number of complaints about missing files, but the end result should be ok.

--
_______________________________________________
users mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/[email protected]
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to