Edit: Originally Posted: 1. Sep 2010, 12:32Yup, I was figuring it out a little while after George gave me his answer, and I
needed to investigate that earlier before submitting that in the forum, sorry about that.
Edit: Can also be found at line 39 of the zenity bash script salix-update-notifier.Code: Select all
if [[ `LANG=C /usr/sbin/slapt-get -s --upgrade | grep "Need to get"` ]]
[/i]
In return, I'll post a script, when I'll have the time, to display:
Code: Select all
The following packages have been EXCLUDED:
xf86-video-intel
The following packages will be upgraded:
gigolo
1 upgraded, 0 reinstalled, 0 newly installed, 0 to remove and 1 not upgraded.
Need to get 102.0kB of archives.
After unpacking 16.0kB disk space will be freed.
gigolo-0.4.0-i486-1gv is to be upgraded to version 0.4.1-i486-1gv
Done
in an ordered way (with the
tail and head commands) for Conky, with and without the excluded packages.
Thank you very much for replying.
Edit: A script to be used with conky. It can be better, though, displaying update when one package is available and updates when more than one update is available or displaying a shiny star (e.g. the letter "i" of the font poky click here) when update(s) available and nothing when there are no updates.Code: Select all
#!/bin/bash
# Conky script for displaying available updates in
# Salix OS. Add something as such to your conkyrc:
#${alignc}${if_match ${execi 80000 .scripts/slapt-get_updates.sh} != 0}Updates available${else}System is up to date!${endif}
NUMOFUPDATES=$(/usr/sbin/slapt-get -s --upgrade | grep version | wc -l)
echo $NUMOFUPDATES