type
status
date
slug
summary
tags
category
icon
password
这篇文章主要是用于个人记录,在每次重装OpenWRT后都均需要手动去替换软件源,加快软件列表更新速度和软件安装速度,正好整理出来,供网友自行取用。内容已经经过筛选,目前2024年10月15日均处于可访问使用状态。
📝 主旨内容
官方镜像站
- OpenWRT官方下载站点:
- URL:
https://downloads.openwrt.org/
- 这是 OpenWRT的主站点,提供所有官方版本的固件和软件包。该站点是获取最新稳定版、开发版(snapshot)和历史版本的主要来源。
- OpenWRT官方GitHub仓库:
- URL:
https://github.com/openwrt/openwrt
- 虽然主要用于代码存储和开发,但也提供了一些资源和文档链接。
国内镜像站
- 清华大学开源软件镜像站:
- URL:
https://mirrors.tuna.tsinghua.edu.cn/openwrt
- 提供了OpenWRT各个版本的镜像,非常稳定和快速。
- 中科大开源镜像站:
- URL:
https://mirrors.ustc.edu.cn/openwrt
- 也是一个非常可靠的镜像源,提供OpenWRT的各个版本。
- 阿里云开源镜像站:
- URL:
https://mirrors.aliyun.com/openwrt
- 提供稳定的OpenWRT镜像下载服务。
- 重庆大学开源镜像站:
- URL:
https://mirrors.cqu.edu.cn/openwrt/
- 同样是一个可以选择的国内镜像源。
- 南京大学开源镜像站:
- URL:
https://mirror.nju.edu.cn/openwrt/
- 提供了OpenWRT的多版本支持。
- 上海交通大学开源镜像站:
- URL:
https://mirror.sjtu.edu.cn/openwrt/
- 提供稳定的开源软件镜像服务。
- 兰州大学开源镜像站:
- URL:
https://mirror.lzu.edu.cn/openwrt/
- 提供多个开源项目的镜像下载。界面有点意思。
- 浙江大学开源镜像站:
- URL:
https://mirrors.zju.edu.cn/openwrt/
- 提供多种开源软件项目的镜像。
个人镜像站
- OpenWRT.AI软件仓库:
- URL:
https://dl.openwrt.ai/
- Kiddin9的自建软件仓库,目前只支持OpenWRT 23.05版本。
如何选择和使用镜像站
在OpenWRT路由器上配置官方软件源通常不需要额外操作,因为默认情况下,OpenWRT已经配置了官方软件源。只需运行
opkg update
命令以确保软件包列表是最新的。同时也不建议频繁对系统默认软件进行更新,除非有可感知的性能问题。要使用这些镜像源,您需要修改OpenWRT路由器上的OPKG软件源,可以查看
/etc/opkg/customfeeds.conf
文件,确保根据您所使用的OpenWRT版本和设备架构进行正确配置。配置示例
将上述内容中的
https://mirror.bjtu.edu.cn/openwrt/
替换为你想要使用的OpenWRT软件源地址,同时注意后面的<Version>
为版本号,需要修改为你OpenWRT的版本号,<architecture>
为系统架构,需要修改为你对应的系统架构,例如X86_64
常见架构
可以通过下面的代码进行系统架构查看,表格内为常用架构。
指令集 | 架构 / 子架构 | OpenWrt软件包结构 |
ㅤ | arm64/genericlayerscape/64b | aarch64_armv8-a |
ㅤ | arc770/generic | arc_arc700 |
ㅤ | archs38/generic | arc_archs |
ARM | brcm2708/bcm2708 | arm_arm1176jzf-s_vfp |
ARM | at91/legacymcs814x/genericmxs/generic | arm_arm926ej-s |
ARM | ipq806x/generic | arm_cortex-a15_neon-vfpv4 |
ARM | at91/sama5d3 | arm_cortex-a5 |
ARM | brcm2708/bcm2710 | arm_cortex-a53_neon-vfpv4 |
ARM | mediatek/generic | arm_cortex-a7 |
ARM | brcm2708/bcm2709 | arm_cortex-a7_neon-vfpv4 |
ARM | sunxi/generic | arm_cortex-a8_vfpv3 |
ARM | bcm53xx/genericlayerscape/32b | arm_cortex-a9 |
ARM | imx6/genericzynq/generic | arm_cortex-a9_neon |
ARM | mvebu/genericomap/generic | arm_cortex-a9_vfpv3 |
ARM | gemini/raidsonicgemini/wiligear | arm_fa526 |
ARM | oxnas/generic | arm_mpcore |
ARM | cns3xxx/generic | arm_mpcore_vfp |
ARM | kirkwood/generic | arm_xscale |
ARM | ixp4xx/genericixp4xx/harddisk | armeb_xscale |
MIPS64 | malta/be64 | mips64_mips64 |
MIPS64 | octeon/generic | mips64_octeon |
MIPS64 | malta/le64 | mips64el_mips64 |
MIPS | ar71xx/genericar71xx/nandar71xx/mikrotiklantiq/xrx200lantiq/xwaylantiq/xway_legacymalta/be | mips_24kc |
MIPS | adm5120/router_beath25/genericbrcm63xx/genericbrcm63xx/smp | mips_mips32 |
MIPS | malta/leramips/rt305xramips/mt7620ramips/mt7621ramips/mt7628ramips/mt7688 | mipsel_24kc |
MIPS | brcm47xx/mips74kramips/rt3883 | mipsel_74kc |
MIPS | adm5120/router_leadm5120/rb1xxadm8668/genericar7/genericar7/ac49xau1000/au1500au1000/au1550brcm47xx/genericbrcm47xx/legacyrb532/genericxburst/qi_lb60 | mipsel_mips32 |
MIPS | ramips/rt288x | mipsel_mips32r2 |
PPC | ppc44x/generic | powerpc_440 |
PPC | apm821xx/nandapm821xx/sata | powerpc_464fp |
PPC | mpc85xx/generic, mpc85xx/p1020 | powerpc_8540 |
x86 | x86/geode | i386_geode |
x86 | x86/legacy | i386_i486 |
x86 | x86/generic | i386_pentium4 |
x86_64 | x86/64 | x86_64 |
命令行替换方法
或者通过命令行方式进行修改,格式为
s,[原来的软件源地址],[替换的软件源地址],g
替换完成后通过
opkg update
进行更新。注意事项
OpenWRT官方版软件源并不一定完全匹配第三方定植后的固件,例如esir、Leon大佬等定制的固件,可能存在库不全或兼容问题。同时官方版本软件源提供的
k-mod-*.ipk
软件包也可能存在无法直接安装的情况。如果你是一个新手,或者只想将OpenWRT系统配置起来养老,那么推荐使用ImmortalWRT,在软件源支持方面可能会更好一些,同时也可以自定义配置国内软件源immoralwrt-opkg-replace-edu-mirror
在最新的快照版本中,OpenWRT已经使用apk包管理器替换opkg,更换软件源时需要注意版本。不推荐新手或者小白使用快照版本(SNAPSHOT)或者RC版本,同时也不建议使用非开源第三方固件。
📎 参考文章
有关OpenWRT安装或者使用上的问题,欢迎您在底部评论区留言,一起交流~