LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to tell what Yum is doing (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-tell-what-yum-is-doing-750137/)

ArmyWife 08-25-2009 11:18 AM

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

colucix 08-25-2009 11:22 AM

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.

fordeck 08-25-2009 11:25 AM

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

anomie 08-25-2009 11:32 AM

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.

lazlow 08-25-2009 12:54 PM

IF I remember correctly, when you log out all normal processes are stopped. So yum should have stopped as soon as you logged out.

sarin 08-25-2009 01:10 PM

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


All times are GMT -5. The time now is 09:25 PM.