
Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net
I got tired of running yum or yumex on my own every few days just to see that there weren't any updates waiting for me. So I developed this superkaramba widget to do it for me. This will poll yum every hour (or on demand if you click refresh) and give you a list of available updates.
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.
14 years ago
********************************
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.
14 years ago
********************************
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.
Shulyaka
14 years ago
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.
Report
Shulyaka
14 years ago
I should have read previous post more carefully.
I forgot to comment requiretty line.
Now it works!
Thanks for the great theme!
Report
Yves
14 years ago
- 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
Report
LaTouf
14 years ago
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 ... )
Report
rowancompsciguy
14 years ago
Report