Yum Monitor

Karamba & Superkaramba

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

0
Score 50.0%
Description:

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.
Last changelog:

13 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

13 years ago

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.

Report

Shulyaka

13 years ago

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!

Report

Yves

13 years ago

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

Report

LaTouf

13 years ago

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 ... )

Report

C

rowancompsciguy

13 years ago

Yes, that's a very good idea. I will try and add this to the next release. Thanks!! :-)

Report

13 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.

12345678910
product-maker Base: 4 x 5.0 Ratings
File (click to download) Version Description Downloads Date Filesize DL OCS-Install MD5SUM
*Needs pling-store or ocs-url to install things
Pling
0 Affiliates
Details
license
version
v0.3
updated Dec 23 2006
added Dec 21 2006
downloads 24h
0
mediaviews 24h 0
pageviews 24h 0