You are not logged in.
Hello All
I've downloaded some conky configurations from this site, that display the number of available packages to be upgraded. It is bundled with a perl script that scans a file called 'updates.log' and simply displays number of lines matching some regexp. However I'd like to know the app that fills the updates.log file.
Offline
Well I made a bash script to do this for myself. It prints out all the available packages to be upgraded and the total amount
#!/bin/bash
# Arch upgradeable packages
list=`pacman -Sup 2> /dev/null`
if [ "$list" == "" ]; then
count=0
else
count=`echo "$list" | wc -l`
fi
for pkg in $list; do
echo -n " "
echo $pkg | sed -e 's#.*/##g' -e 's%(.*).pkg.*$%1%'
done
echo " Total: $count"
Just add a line like ${execi 1800 ~/pacman.sh}
Pacman's database will need to be updated beforehand though
Offline
Hello All
I've downloaded some conky configurations from this site, that display the number of available packages to be upgraded. It is bundled with a perl script that scans a file called 'updates.log' and simply displays number of lines matching some regexp. However I'd like to know the app that fills the updates.log file.
I believe you are speaking about my tiny little perl script that parses "updates.log" and outputs to conky.
The command that outputs to updates.log is pacman itself. If you look in the file pacsync.sh you will see the command.
pacman -Syup --noprogressbar > /PATH/TO/updates.log
Type 'pacman -Syup --noprogressbar' into a terminal and you get the same thing. It just doesn't get sent to a logfile.
Basically you can spit the output from any command to a file of your choice with ">" or ">>". The first one will overwrite the contents of the file, the second will just append the info to the end of the file.
Hope this helps.
Hi. I'm a sig. What are you?
Offline
Hello, thanks you both. Now I have my conky almost fully configured (still lacking temps though).
Offline