LL Software Update Notification..?? - Printable Version +- Linux Lite Forums (https://www.freecinema2022.gq/forums) +-- Forum: General (https://www.freecinema2022.gq/forums/forumdisplay.php?fid=4) +--- Forum: On Topic (https://www.freecinema2022.gq/forums/forumdisplay.php?fid=14) +--- Thread: LL Software Update Notification..?? (/showthread.php?tid=1127) |
LL Software Update Notification..?? - Wirezfree - 11-19-2014 Hello More Knowledgeable Folks, I found this whilst "Googling", Is something like this feasible in LL.? I just read the "[glow=green,2,300]Xfce & Update Notification[/glow]" Software Update Notification Dave Re: LL Software Update Notification..?? - anon222 - 11-19-2014 For some of the basic packaging operations, apt and yum are basically identical. These are "similar" operations, but there are some differences in how they act. These two are similar: apt-get --simulate upgrade yum check-update I guess this one-liner can be used to display a notification if there are updates. Code: apt-get --simulate upgrade | grep "The following packages will be upgraded:"; if [ "${PIPESTATUS[1]}" -eq "0" ]; then notify-send -i /usr/share/icons/gnome/32x32/status/software-update-available.png -u normal Updates "There are updates available"; fi Or in a script Code: #!/bin/bash Edit: This is not practical because you have to do sudo apt-get update first Re: LL Software Update Notification..?? - Valtam - 11-19-2014 Damn you sudo! Re: LL Software Update Notification..?? - rokytnji - 11-19-2014 (11-19-2014, 08:37 PM)Jerry date Wrote: Damn you sudo! Code: $ apt-cache policy sux ;D Re: LL Software Update Notification..?? - Wirezfree - 11-19-2014 Hi, Sorry some of that went over me.. So do I take it an automated check & notification is not possible then.?? the edit to message sudo requirement is stopping it. Dave |