
Yum Monitor
Source (link to git-repo or to original if based on someone elses unmodified work):
Please let me know if you find any bugs or would like any particular additions to the widget. My only plans for the widget after this current build are to add checkboxes to allow particular packages to be selected for update and to display error messages.
Also, if you are voting bad, please tell me why so I can make this widget better. I can't fix problems with the tool if I don't know what they are ;-).
*************************************
NOTE: You must be setup in your /etc/sudoers file to be able to run yum or else you can only use this widget as root.
********************************
v0.1:
-Initial release
-Automatically refreshed every hour
-On demand refresh button
********************************
v0.2
-Added vertical scroll for package list
-Fixed positioning of "System up to date" message
********************************
v0.3
-The update button now works. Keep in mind this will update ALL packages. I am working on adding check boxes to select particular packages for update.
Ratings & Comments
5 Comments
Hello! I'v got sudo configured properly, but the Monitor doesn't work. It's strange. The '~/.yumtemp' file is always empty. If I run "sudo yum list updates | grep -A 100 'Updated Packages' | awk '{print $1}' > ./.yumtemp.txt" manually it would work as expected. I'v wrote a test script to test python and it worked well: #!/usr/bin/python import os os.system("sudo yum list updates | grep -A 100 'Updated Packages' | awk '{print $1}' > ./.yumtemp.txt") But why doesn't this code work in the Monitor? I tried to change 'pollYumCmd = "sudo yum list updates ...' line to 'pollYumCmd = "echo $USER > ./superkaramba_user.txt"' in yummonitor.py file and it returned my normal username to superkaramba_user.txt file, so Yum Monitor is run as normal user. Please help, I'm confused.
I'm sorry. I should have read previous post more carefully. I forgot to comment requiretty line. Now it works! Thanks for the great theme!
Thanks for it! I just have to update my sudo configuration with the following parameters : - comment the line : Defaults requiretty - add the line : natyves2 localhost=NOPASSWD:/usr/bin/yum My distribution is FC6, disable 'requiretty' is mandatory to avoid the message : “sudo: sorry, you must have a tty to run sudo” Thanks Yves
thanks for this ! really good just one thing : isn't it possible to allow kind of "view-only" mode in which you don't have to be log as root ? ( yum check-update doesn't need root access ... )
Yes, that's a very good idea. I will try and add this to the next release. Thanks!! :-)