mirror of
https://github.com/tuna/mirror-web.git
synced 2025-12-25 20:32:46 +00:00
use regex to replace termux source
This commit is contained in:
parent
d3ad85bd88
commit
7afe404d6d
|
|
@ -33,7 +33,7 @@ Termux 是运行在 Android 上的 terminal。不需要root,运行于内部存
|
|||
使用如下命令自动替换官方源为 TUNA 镜像源
|
||||
|
||||
``` bash
|
||||
sed -i 's@dl.bintray.com/termux/termux-packages-24@mirrors.tuna.tsinghua.edu.cn/termux@' $PREFIX/etc/apt/sources.list
|
||||
sed -i 's@^\(deb.*stable main\)$@#\1\ndeb https://mirrors.tuna.tsinghua.edu.cn/termux stable main@' $PREFIX/etc/apt/sources.list
|
||||
pkg up
|
||||
```
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue