How To Rectify Transaction Lock /var/lib/rpm in Linux

When you interrupt yum installation and try to reinstall the package again , you are likely to get a transaction lock. You can rectify this issue using the following methods.
1. Remove the db files and rebuild those files again using the following commnds.
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.

The above command will show all the existing process.

Find the process id and kill the ,process using the following command

 Use the following command to search the yum processes  The above command will list all the yum process. Get the process id and kill all the process using the following command.

Related

Why should you learn Linux?Linux is an awesome OS to work with. It is very malleable and it is really really fun to…

Read more

How do I install the latest mongoDB database server and components in Redhat 7 or a centos 7 box? There are no…

Read more

Before understanding what hardlinks and softlinks are, you must have an idea about innodes in Linux Innode is related…

Read more

Internet is huge! Help us find great content

Newsletter

Never miss a thing! Sign up for our newsletter to stay updated.

About

The Best Tutorials & Tips to Speedup Your DevOps Workflow.

Created by Bibin Wilson.

​98
%

Off

Udemy Black Friday Offer Courses For $9.99 For Limited Time