File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 44# Source: https://gist.github.com/bouroo/b750d3fa357362772082407cfa21fb4a
55# Fork: https://gist.github.com/jcchikikomori/0984ae8111496ea7544b6452adbbe180
66
7+ # Backup mirrorlist
8+ cp -f /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist.backup
9+ # Install essential packages
10+ pacman -Syy --noconfirm --noprogressbar sudo gvim nano htop iftop mtr dkms lz4 bash-completion base-devel pacman-contrib git zsh unzip
711# Init pacman mirror
812curl -s -L " https://archlinux.org/mirrorlist/?country=CN&country=JP&country=SG&country=KR&protocol=https&ip_version=4&use_mirror_status=on" | sed -e ' s/^#Server/Server/' -e ' /^#/d' > /etc/pacman.d/mirrorlist
913# Init key
@@ -12,8 +16,5 @@ pacman-key --init
1216pacman-key --populate archlinux
1317# Sync repo
1418pacman -Syyu --noconfirm --noprogressbar
15- # Install essential packages
16- pacman -S --noconfirm --noprogressbar sudo gvim nano htop iftop mtr dkms lz4 bash-completion base-devel pacman-contrib git zsh unzip
17- # Sort repo by speed
18- cp -f /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist.backup
19+ # Sort repo by speed (pacman-contrib package required)
1920rankmirrors -n 5 /etc/pacman.d/mirrorlist.backup > /etc/pacman.d/mirrorlist
You can’t perform that action at this time.
0 commit comments