OpenWrt更换opkg源

阅读 92

2023-08-04

手工替换

登录到路由器,并编辑 /etc/opkg/distfeeds.conf 文件,将其中的 downloads.openwrt.org 替换为 mirrors.aliyun.com/openwrt 即可。

自动替换(阿里源)

执行如下命令自动替换

sed -i 's_downloads.openwrt.org_mirrors.aliyun.com/openwrt_' /etc/opkg/distfeeds.conf

清华源

21.02.5阿里源不完整

https://mirrors.tuna.tsinghua.edu.cn/openwrt/releases/21.02.7/

# 阿里源->清华源
sed -i 's_mirrors.aliyun.com/openwrt_mirrors.tuna.tsinghua.edu.cn/openwrt_' /etc/opkg/distfeeds.conf

# 官方源->清华源
sed -i 's_downloads.openwrt.org_mirrors.tuna.tsinghua.edu.cn/openwrt_' /etc/opkg/distfeeds.conf

参考

https://doc.embedfire.com/openwrt/user_manal/zh/latest/User_Manual/openwrt/opkg.html

精彩评论(0)

0 0 举报