Skip to content

Commit

Permalink
Update readme.md
Browse files Browse the repository at this point in the history
  • Loading branch information
xpko authored Sep 21, 2024
1 parent f40aa55 commit 2ac0997
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion termux/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,20 @@ 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
sed -i 's@^\(deb.*games stable\)$@#\1\ndeb https://mirrors.tuna.tsinghua.edu.cn/termux/game-packages-24 games stable@' $PREFIX/etc/apt/sources.list.d/game.list
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
```
# 查看软件所有有效版本
Expand Down

0 comments on commit 2ac0997

Please sign in to comment.