From 2ac09971d9e7a40bd6a77f8688e79ef9d39bab3e Mon Sep 17 00:00:00 2001 From: shlu Date: Sat, 21 Sep 2024 15:42:40 +0800 Subject: [PATCH] Update readme.md --- termux/readme.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/termux/readme.md b/termux/readme.md index 60183c64..0ecfe8b7 100644 --- a/termux/readme.md +++ b/termux/readme.md @@ -5,7 +5,7 @@ https://f-droid.org/en/packages/com.termux/ export http_proxy=http://127.0.0.1:1080 export https_proxy=http://127.0.0.1:1080 ``` -# 替换源 +# ~~替换源~~ ``` sed -i 's@^\(deb.*stable main\)$@#\1\ndeb https://mirrors.tuna.tsinghua.edu.cn/termux/termux-packages-24 stable main@' $PREFIX/etc/apt/sources.list @@ -13,6 +13,12 @@ sed -i 's@^\(deb.*games stable\)$@#\1\ndeb https://mirrors.tuna.tsinghua.edu.cn/ sed -i 's@^\(deb.*science stable\)$@#\1\ndeb https://mirrors.tuna.tsinghua.edu.cn/termux/science-packages-24 science stable@' $PREFIX/etc/apt/sources.list.d/science.list +pkg update +``` +# 替换源 +> 新版增加了GUI选择源界面,很方便 +``` +termux-change-repo pkg update ``` # 查看软件所有有效版本