LinuxQuestions.org
Register a domain and help support LQ
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 08-25-2009, 12:18 PM   #1
ArmyWife
LQ Newbie
 
Registered: Aug 2009
Location: El Paso Tx
Posts: 2

Rep: Reputation: 0
Question How to tell what Yum is doing


Good Morning all,
I am new to Linux, as you can tell, so I am not sure how to do this or if is possible.
I started they Yum update in root log in. I miminized it and forgot it was running, I then logged out and to my reg user. I remember that the yum update was running, I logged back into the root log in. How do I display what yum is working on? What command is used in the terminal?
Thanks.. ArmyWife
 
Old 08-25-2009, 12:22 PM   #2
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
Take a look at /var/log/yum.log to see if the update process has finished. Then you can simply try to run the updater again, if another session of yum is still running it will warning you and refuse to start a new session.
 
Old 08-25-2009, 12:25 PM   #3
fordeck
Member
 
Registered: Oct 2006
Location: Utah
Posts: 520

Rep: Reputation: 61
You can check the log file to see if any updates were done by issuing the following command:

cat /var/log/yum.log

This will list any yum updates that have been done. Note that you would have to do this as the user root.

Regards,

Fordeck
 
Old 08-25-2009, 12:32 PM   #4
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
Also, if you're trying to determine whether yum is still running at all, use:

$ pgrep yum

If a number (pid, to be exact) is echoed back to you, then yum is still working. If nothing is echoed back, yum is done.
 
Old 08-25-2009, 01:54 PM   #5
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,362

Rep: Reputation: 172Reputation: 172
IF I remember correctly, when you log out all normal processes are stopped. So yum should have stopped as soon as you logged out.
 
Old 08-25-2009, 02:10 PM   #6
sarin
Member
 
Registered: May 2001
Location: India, Kerala, Thrissur
Distribution: FC 7-10
Posts: 354
Blog Entries: 2

Rep: Reputation: 34
Just run the update again. If there is anything left, yum will start from where it last stopped. If you want yum to continue after you logout, use this command
Code:
nohup yum -y update &
When you login back, check the nohup log file to see what is going on/happened.
Code:
tail -f nohup.out

Last edited by sarin; 08-25-2009 at 02:11 PM. Reason: wrong yum command
 
  


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 install flash ... yum: command not found ... which yum ... /usr/bin/yum tg3793 Fedora 8 04-13-2011 12:25 PM
problem after yum yum yum (delicious) alaios Fedora 3 01-14-2009 03:34 AM
yum config error parsing file failed - yum won't run emuub Linux - Software 9 11-04-2008 06:48 AM
Yum Problem - /var/cache/yum/base/primary.xml.gz:1 ice99 Linux - Software 0 12-15-2005 02:08 PM
Yum Errors in parsing, whats wrong here (yum.conf pasted) thejokker Linux - Newbie 1 06-15-2004 03:28 AM


All times are GMT -5. The time now is 10:22 PM.

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