Why does my rpm command hangs?

by Vivek Gite on May 1, 2007 · 3 comments

Q. Why does my Fedora Core Linux server hangs whey I type or use rpm command? How do I fix the problem as I need to install packages?

A
. Under Linux many command creates termporary lock files. If this lock file is not removed by rpm in databases you will see this problem. It is also possible that other apps may try to access same file. Please note that following solution works under:

=> CentOS

=> Fedora Core

=> Redhat Linux/RHEL

There is no clear cut solution exists. You can simply delete those files from /var/lib/rpm/ directory
# /bin/rm /var/lib/rpm/__db.*

The above command removes any locks left on the rpm database and now you should able to use rpm command.

Featured Articles:

Share this with other sys admins!
Facebook it - Tweet it - Print it -

{ 3 comments… read them below or add one }

1 Calle August 15, 2008

Thanks, that worked a treat!

Reply

2 keso February 23, 2009

Thanks!

Reply

3 Peter Murray October 12, 2009

This solved a server problem I had been working several days on. Thank you.

Reply

Leave a Comment

You can use these HTML tags and attributes for your code and commands: <strong> <em> <ol> <li> <u> <ul> <blockquote> <pre> <a href="" title="">
What is 5 + 13 ?
Please leave these two fields as-is:
Solve the simple math so we know that you are a human and not a bot.



Previous post:

Next post: