0
点赞
收藏
分享

微信扫一扫

OpenWrt更换opkg源

you的日常 2023-08-04 阅读 87

手工替换

登录到路由器,并编辑 /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

举报

相关推荐

更换yum源

Python——更换pip源

Linux更换yum源

更换yum源仓库

linux更换yum源

0 条评论