Only use servers with https in mirrorlist?
Just short of manually pruning out servers that do not have https support in the /etc/pacman.d/mirrorlist file every time it is updated, is there a way to configure pacman to only use mirrors supporting https?
About this post
- Posted
- Archived
- Score
- 11 · 100% up
- Kind
- Text
- ID
- 5siri8
6 comments
You could use Reflector and a pacman hook.
Thank you. I already use reflector to select the 'fastest mirror', and it looks really simple to add https-only to that selection!
I "manually prune" using sed. It only takes a second.
This work perfectly:
sudo reflector --verbose --country 'United States' --protocol https --sort rate --save /etc/pacman.d/mirrorlist
(Edit country to your needs.)
What would you gain from using https mirrors? Packages are signed with gpg anyway.
The added benefit that those who may be listenning don't know what I'm downloading. I tend to prefer flooding the internets with encrypted traffic, to support those who need it for communication.