Skip to content

Instantly share code, notes, and snippets.

@jaksi
Last active April 28, 2018 12:06
Show Gist options
  • Save jaksi/c67bac0cfff0f5db4cfe00a9a383ab76 to your computer and use it in GitHub Desktop.
Save jaksi/c67bac0cfff0f5db4cfe00a9a383ab76 to your computer and use it in GitHub Desktop.
Update pacman mirrorlist using reflector after each upgrade of pacman-mirrorlist
[Trigger]
Type = Package
Operation = Install
Operation = Upgrade
Target = pacman-mirrorlist
[Action]
Description = Updating mirrorlist...
When = PostTransaction
Depends = reflector
Exec = /usr/bin/reflector --latest 5 --sort rate --save /etc/pacman.d/mirrorlist
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment