LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-19-2007, 09:33 AM   #1
alabamaman
Member
 
Registered: Jul 2007
Location: linux-noobville.d/dfw texas
Distribution: grub multi-booter
Posts: 102

Rep: Reputation: 16
Angry yum update never dies!!


okay so i just wanna say i'm sorry for posting this because i'm sure its a really dumb question, but how on earth do i kill the yum update i started in the background? i started off trying to install vlc, [which doesn't even matter at this point] and as i was trying to redo what failed so i could copy/paste it to a post i got this message...

[root@localhost yum.repos.d]# yum update
Loading "installonlyn" plugin
Existing lock /var/run/yum.pid: another copy is running. Aborting.

before when i was trying to do yum update i ran it in the background with &.

all i want to do is kill this process so i can start over, fail my install of vlc, and post my failure so i can fix that, but now i'm stuck.

thanks for your patience and once again i'm sorry for the stupidity of this question -- i've already torn through my linux bible looking for the answer as well but i came out of that with a big bag of nothing.
 
Old 07-19-2007, 09:43 AM   #2
ethics
Senior Member
 
Registered: Apr 2005
Location: London
Distribution: Arch - Latest
Posts: 1,522

Rep: Reputation: 45
First do
Code:
ps aux | grep yum
to see if it's running.

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
 
Old 07-19-2007, 09:44 AM   #3
b0uncer
LQ Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
No problem.
Code:
jobs
shows jobs you started. First one is job number 1, second 2 etc. If you found out there was job number 1 that was your yum update, then simply
Code:
kill %1
to kill it. %1 because it's the number one process of your own, not process ID 1.

Alternatively,
Code:
ps -e | grep yum
and you should get the process ID (pid). Use that number:
Code:
kill number
or just
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
And then re-try
 
Old 07-19-2007, 09:49 AM   #4
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 57
ps aux | grep yum
kill <the process number of the yum install process here>


FYI: the typed command 'cat /etc/*release' will tell you which version of Fedora your running.
 
Old 07-19-2007, 09:50 AM   #5
alabamaman
Member
 
Registered: Jul 2007
Location: linux-noobville.d/dfw texas
Distribution: grub multi-booter
Posts: 102

Original Poster
Rep: Reputation: 16
wow thanks guys i'm not sure what was going on, i'd do "jobs" and it would do absolutely nothing, but evidently it just killed itself and now i'm back to my original problem so its time for another post ^_^
 
Old 07-19-2007, 10:05 AM   #6
alabamaman
Member
 
Registered: Jul 2007
Location: linux-noobville.d/dfw texas
Distribution: grub multi-booter
Posts: 102

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by Lenard
ps aux | grep yum
kill <the process number of the yum install process here>


FYI: the typed command 'cat /etc/*release' will tell you which version of Fedora your running.
alright! thank you very much, that will most likely come in handy in the future. turns out i'm on FC6 rather than FC4 -- oops!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
yum question: How to update from backed up yum cache? Arodef Linux - Software 2 02-02-2010 11:42 PM
Yum on FC6. 'yum update' error. mufy Fedora 8 06-14-2007 02:03 AM
GNOME Window Manager dies after update. amaroKer Mandriva 1 01-05-2007 07:14 PM
Query re: order of yum update and yum install jajtiii Linux - General 0 12-12-2005 12:48 PM
trying to update via yum and update fails lnxmacusr Fedora 4 12-17-2004 03:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:58 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration