Skip to content

Filter Out US Mirrors Quickly During Install

Does anyone have some awesome vim skills that can basically wipe or comment all non us mirrors / un-comment all us mirrors from: /etc/pacman.d/mirrorlist

Or if anyone knows how I can do this w/ Sed & Awk.

0 points5 comments
Open on Reddit
About this post
Posted
Archived
Score
0 · 100% up
Kind
Text
ID
37fiow

Author

30
posts
91
comments
2
media
View profile

5 comments

not sure exactly what your use case is, but did you see this?

https://wiki.archlinux.org/index.php/Reflector#Example_3

reflector --verbose --country 'United States' -l 200 -p http --sort rate --save /etc/pacman.d/mirrorlist

creates a mirrorlist based on fast, up to date US mirrors.

HTH.

4 points

Are the tools installed during the installer to run the above 'reflector' command?

0 points

I usually just run sed -ni '/kernel/p' /etc/pacman.d/mirrorlist.

1 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.