01.02.2019 15:32, Carlos E. R. пишет:
On 01/02/2019 13.21, Carlos E. R. wrote:
On 01/02/2019 13.09, Andrei Borzenkov wrote:
Or create a temporary copy of the files and try the command.
Ok, both commands run.
--rebuilddb (and --inittdb) was provided by rpm in the past and was moved in separate rpmdb binary 8 years ago. "rpm --rebuilddb" is redirected to this binary via popt alias. bor@bor-Latitude-E5450:~/src/rpm$ grep rebuilddb rpmpopt.in rpm exec --rebuilddb rpmdb --rebuilddb
Interestingly, the command deleted /var/lib/rpm
No, it did not. It does not know anything about /var/lib/rpm at all.
(and my backups!) and created instead a symlink to ../../usr/lib/sysimage/rpm
rpmdb is located /usr/lib/sysimage/rpm in Leap 15 and TW. /var/lib/rpm is just compatibility link.
Found my backup in "/usr/lib/sysimage/rpmold.29244/copia".
So nothing was deleted.