From Bugzilla Helper:
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)
Description of problem:
Stale lock files are created in the rpm directory. I have removed
them and rebuilt the database, but if I log out and log back in
again, the __db.003 file is recreated straight away. If I reboot
and log in all __db.001 through to __db.003 files are recreated.
This happens even though I do not run rpm after login, or attempt to
install any packages.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1.Remove all __db* files from rpm directory
2.rpm -vv --rebuilddb
Actual Results: __db.003 file created in rpm directory.
rpm hangs on attempting to install a package.
Expected Results: No lock files created
The __db* files contain locks, but are not the locks themselves.
Yes, the files should be persistent after being created by 1st
rpm command run as root.
You can see the locks by doing
There should be no locks when rpm is not running.
If login is creating stale locks, then you are running
rpm in your bashrc scripts somehow.