Skip to content

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?

11 points6 comments
Open on Reddit
About this post
Posted
Archived
Score
11 · 100% up
Kind
Text
ID
5siri8

Author

15
posts
807
comments
3
media
View profile

6 comments

You could use Reflector and a pacman hook.

10 points

Thank you. I already use reflector to select the 'fastest mirror', and it looks really simple to add https-only to that selection!

1 points

This work perfectly:

sudo reflector --verbose --country 'United States' --protocol https --sort rate --save /etc/pacman.d/mirrorlist

(Edit country to your needs.)

2 points

What would you gain from using https mirrors? Packages are signed with gpg anyway.

1 points

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.

12 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.