Showing posts with label YUM. Show all posts
Showing posts with label YUM. Show all posts

Tuesday, April 7, 2009

How to resolve Locked YUM

Mistakenly many times YUM is locked. When this happens for such problem like
Existing lock /var/run/yum.pid: another copy is running as pid 18092.

Here's the way to resolve.
Locate the yum.pid file, usually in fedora, it is located in /var/run dir
cd /var/run
ls
vim yum.pid

press insert
delete pid number and save pressing esc + : +
x then press enter

now run your yum command

Thursday, March 5, 2009

Fedora 10: yum update rpm db fail and meta data did not match error fixed

hey folks
I was trying to update my yum using: yum update but was getting an error saying that rpm db is failed, but I have fixed up that thing in the following steps.

Step 1: clean the yum
yum clean all

Step 2: removing all rpm db from /var/lib/rpm
rm -fr /var/lib/rpm/__db*

Step 3: Now update the yum
yum update


Now enjoy