#arch-linux #mirror #pacman #file-path #cli

app asu

Archlinux 设置最快的镜像源 CLI

6 个版本

0.1.33 2022年10月8日
0.1.31 2022年10月8日
0.1.29 2022年8月17日
0.1.27 2022年7月11日
0.1.6 2022年5月29日

#1807 in 命令行工具

Download history 18/week @ 2024-03-09 1/week @ 2024-03-16 5/week @ 2024-03-30 1/week @ 2024-04-06 2/week @ 2024-04-20 2/week @ 2024-05-18

85 每月下载量

Apache-2.0

4MB
1K SLoC

包含 (ELF exe/lib, 2MB) src/usr/bin/asu, (ELF exe/lib, 2MB) pkg/asu-bin/usr/bin/asu

Archlinux 设置最快的镜像源 CLI

Crates.io Rust license

示例

asu -h
asu - archlinux set mirror source cli
Usage:        
asu -n FR|| -new FR => fetch archlinux France mirror source and set fatest pacman mirror
asu -u name|| -use name => set selected mirror source
asu -l || -list => list all mirror list
asu -w || -where => shows the .asu.toml file path
asu -c || -country => shows all country abbreviated names 
asu -t || -test => get config from local .asu.toml file and test speed
asu -b || -best => get config from local .asu.toml file and set best pacman mirror

安装

cargo install asu

运行以设置

sudo asu
The first run requires a 2 capital letter country abbreviated name
#example
sudo asu -n FR => France mirror source
sudo asu -n AU => Australia mirror source
sudo asu -n US => Us mirror source
sudo asu -n DE => Germany mirror source
sudo asu -n GB => British mirror source
sudo asu -n CN => China mirror source

依赖

~6–17MB
~258K SLoC