Skip to content

Instantly share code, notes, and snippets.

@gr33n7007h
Created April 11, 2020 08:46
Show Gist options
  • Save gr33n7007h/b825f515275d736588f4b6046931e010 to your computer and use it in GitHub Desktop.
Save gr33n7007h/b825f515275d736588f4b6046931e010 to your computer and use it in GitHub Desktop.
Update mirrors.
[Trigger]
Operation = Upgrade
Type = Package
Target = pacman-mirrorlist
[Action]
Description = Updating pacman-mirrorlist with reflector and removing pacnew...
When = PostTransaction
Depends = reflector
Exec = /bin/sh -c "reflector --protocol https --country 'United Kingdom' --score 10 --sort rate --save /etc/pacman.d/mirrorlist; rm -f /etc/pacman.d/mirrorlist.pacnew"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment