How To Rectify Transaction Lock /var/lib/rpm in Linux
- Last Updated on: December 18, 2013
- By: scriptcrunch
1. Remove the db files and rebuild those files again using the following commnds.
Sudo rm -f /var/lib/rpm/__db.00*
Sudo rpm --rebuilddb
Once you executed the above commands all the locks will be freed and you can continue with your instllation.
2. You can also remove the locks by kill all the existing process which is holding the lock on the resource using the following commands.
Sudo ps –ef
The above command will show all the existing process.
Find the process id and kill the ,process using the following command
Kill –9 <process id>
Ps aux | grep yum
Kill -9 process-id
Other Interesting Blogs

CKA Exam Study Guide: Certified Kubernetes Administrator
Passing the cloud-native Certified Kubernetes Administrator (CKA) exam is not a cakewalk. To pass the CKA exam, you should have enough hands-on

Linux Foundation Coupon for 2023
Hi Techies, I wanted to let you know about a pretty sweet deal with the Linux Foundation Coupon that is running now.

[35% OFF] Linux Foundation LFCA, LFCS & LFCT Exam Voucher Codes
Linux Foundation has announced up to a $284 discount on its Linux certification programs Linux Foundation Certified IT Associate (LFCA) and Linux