Linux Tips #01 - Killing the Yum.pid
First do to see if it's running.
If it is running in the background you could type
that would bring the last background task to the foreground.
Or you could kill the process using the info from the ps command.
If it isn't running and the file is left over, you can delete the file /var/run/yum.pid and run it again
Code:
Code:
ps aux | grep yum
If it is running in the background you could type
Code:
fg
that would bring the last background task to the foreground.
Or you could kill the process using the info from the ps command.
If it isn't running and the file is left over, you can delete the file /var/run/yum.pid and run it again
Code:
jobs
Code:
kill %1
Alternatively,
Code:
ps -e | grep yum
Code:
kill number
Code:
killall yum
If you can't kill it, make some force:
Code:
killall -9 yum
Or if you find it's not running anymore, but lock file exists, just remove it:
Code:
rm /var/run/yum.pid
No comments:
Post a Comment