On 2024-03-14 06:01, -pj wrote:
Hi, I am using openSUSE TUmbleweed. What is the general principal and thought/s about recreating the 'index databases' on the machine with (# rpm --rebuilddb)?
Is there another command or systemd service that should be run after this?
Can this cause damage to the existing paths, files or directories already in place? Are there known negative effects of the command?
To me it seems like perhaps a command like 'zypper clean' or 'zypper ref' even though obviously different in what it does. Something of a sort of maintenance procedure of sorts?
Article -> https://en.wikipedia.org/wiki/RPM_Package_Manager#Forks
It is a last resource type of command, used in desperation, when the database is already broken. It only affects the database itself. I don't suppose it can cause damage if run when it is not needed. Damage comes from not being able to fully repair a broken database. Consequences will be rpm not knowing some packages are already installed or not detecting properly what to update; but again, not because the command itself breaks things, but because it fails to repair previous breakage, AFAIK. If the command fails, there is a periodic backup of the database in /var/adm/backup/rpmdb -- Cheers / Saludos, Carlos E. R. (from 15.5 x86_64 at Telcontar)