where are the rpmdb and alternatives files supposed to be?
As near as I can tell, the rpm db files were (are) in /var/lib/rpm while some things seem to be accessing them in /usr/var/lib/rpm. Oddly, /lib/rpm is pointing to /etc ?? That doesn't seem right. I seem to have multiple copies of the alternatives directory: /etc/alternatives ^^ this one is full of symlinks /var/lib/rpm/alternatives /usr/var/lib/rpm/alternatives ^^ these two are full of small files Thanks, I think...
On 4/1/21 6:35 AM, L A Walsh wrote:
As near as I can tell, the rpm db files were (are) in /var/lib/rpm
Yes that is the "Old" location
while some things seem to be accessing them in /usr/var/lib/rpm.
That seems unusual, my tumbleweed has no /usr/var instead I have. simon@tek-top ~ ➤ ll /var/lib/rpm lrwxrwxrwx 1 root root 26 Mar 23 2020 /var/lib/rpm -> ../../usr/lib/sysimage/rpm
Oddly, /lib/rpm is pointing to /etc ?? That doesn't seem right.
Agreed, /lib/rpm doesn't exist on my system.
I seem to have multiple copies of the alternatives directory:
/etc/alternatives ^^ this one is full of symlinks
This is by design and how it works, for example ll /usr/bin/vim /usr/bin/vim -> /etc/alternatives/vim ll /etc/alternatives/vim /etc/alternatives/vim -> /usr/bin/vim-nox11
/var/lib/rpm/alternatives /usr/var/lib/rpm/alternatives
^^ these two are full of small files
According to the spec file %{_localstatedir}/lib/alternatives is the correct location, on my machine it expands to '/var' using rpm --eval It seems highly likely that if you have installed packages that weren't built with open build service that you may have built some packages with this variable set to /usr/var instead. I am not sure how this is set but it could be influenced by the project config. I guess that currently no one has moved update alternatives from /var/lib yet because the transactional update people aren't using it and so haven't found the need, but it wouldn't supprise me if they do at some point. Cheers -- Simon Lees (Simotek) http://simotek.net Emergency Update Team keybase.io/simotek SUSE Linux Adelaide Australia, UTC+10:30 GPG Fingerprint: 5B87 DB9D 88DC F606 E489 CEC5 0922 C246 02F0 014B
On 2021/03/31 21:50, Simon Lees wrote:
On 4/1/21 6:35 AM, L A Walsh wrote:
As near as I can tell, the rpm db files were (are) in /var/lib/rpm
Yes that is the "Old" location
----- ah ha!
while some things seem to be accessing them in /usr/var/lib/rpm.
That seems unusual, my tumbleweed has no /usr/var instead I have.
--- Had /usr/var -> ../var, so a dup of /var/lib/rpm.
simon@tek-top ~ ➤ ll /var/lib/rpm lrwxrwxrwx 1 root root 26 Mar 23 2020 /var/lib/rpm -> ../../usr/lib/sysimage/rpm
---- Good to know, though I seem to have mine slightly out of sync. An strace of rpm+zypper shows my rpm accessing the new location (/usr/lib/sysimage/rpm/Packages), but zypper is still accessing the old path ("/var/lib/rpm/Packages"). ----
participants (3)
-
Carlos E. R.
-
L A Walsh
-
Simon Lees