Skip to content

Instantly share code, notes, and snippets.

@repomaa
Forked from anonymous/poll-updates.sh
Created May 23, 2013 11:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save repomaa/5635410 to your computer and use it in GitHub Desktop.
Save repomaa/5635410 to your computer and use it in GitHub Desktop.
#!/bin/bash
# Run as root
# Requires community/expac
user="your username"
# Download packages needing an update
nice -n 50 pacman -Syuwq --noconfirm > /dev/null
# Write the packages needing an update to file
pacman -Quq | tr "\\n" " " | xargs expac -S '%r/%n [%v]' > /home/$user/.pacmanupdates
# Update sublet
subtler -su pacman > /dev/null
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment