Skip to content

Instantly share code, notes, and snippets.

@siers
Created October 4, 2016 14:36
Show Gist options
  • Save siers/fca0f6f666833731ffd53f2b6e884966 to your computer and use it in GitHub Desktop.
Save siers/fca0f6f666833731ffd53f2b6e884966 to your computer and use it in GitHub Desktop.
The diff from a local fork of checkupdates that downloads latest packages so you can start upgrading on the minute's whim
# diff /usr/bin/checkupdates ~/downloadupdates
107,108c107,108
< fakeroot -- pacman -Sy --dbpath "$CHECKUPDATES_DB" --logfile /dev/null &> /dev/null
< pacman -Qu --dbpath "$CHECKUPDATES_DB" 2> /dev/null | grep -v '\[.*\]'
---
> pacman -Sy --dbpath "$CHECKUPDATES_DB" --logfile /dev/null &> /dev/null
> pacman -Suw --dbpath "$CHECKUPDATES_DB" --noconfirm
# crontab -l | grep downloadupdates
* * * * * ~root/downloadupdates
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment