Skip to content

Instantly share code, notes, and snippets.

@KenyOS
Created June 30, 2018 13:12
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 KenyOS/e02ba7911dfb8c5c961372061a373308 to your computer and use it in GitHub Desktop.
Save KenyOS/e02ba7911dfb8c5c961372061a373308 to your computer and use it in GitHub Desktop.
Hook for use Reflector on Arch Linux (File on /usr/share/libalpm/hooks)
[Trigger]
Type = File
Operation = Install
Operation = Upgrade
Operation = Remove
Target = usr/
[Action]
Description = Updating Arch Linux Mirrors....
When = PostTransaction
Exec = /usr/bin/reflector --verbose --latest 5 --sort rate --save /etc/pacman.d/mirrorlist
NeedsTargets
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment