OpenWrt配置opkg.conf

傻人干活才累.
用openwrt有一年多了, 传输数据一直使用wget从外部的web服务器取. 这种方法我个人觉得还算轻松.
但是调试的多了,写大型一点的程序,总是这样就有点麻烦了.

安装软件也是如此.

前几天无意中看到了opkg.conf, 觉得这个可以让少输入一些地址.

修改opkg.conf文件如下

root@OpenWrt:/etc# cat opkg.conf 
dest root /
dest ram /tmp
lists_dir ext /var/opkg-lists
option overlay_root /overlay
src/gz barrier_breaker_base http://192.168.202.110/base
#src/gz barrier_breaker_base http://downloads.openwrt.org/barrier_breaker/14.07/ramips/mt7620a/packages/base
#src/gz barrier_breaker_luci http://downloads.openwrt.org/barrier_breaker/14.07/ramips/mt7620a/packages/luci
#src/gz barrier_breaker_management http://downloads.openwrt.org/barrier_breaker/14.07/ramips/mt7620a/packages/management
#src/gz barrier_breaker_oldpackages http://downloads.openwrt.org/barrier_breaker/14.07/ramips/mt7620a/packages/oldpackages
#src/gz barrier_breaker_packages http://downloads.openwrt.org/barrier_breaker/14.07/ramips/mt7620a/packages/packages
#src/gz barrier_breaker_routing http://downloads.openwrt.org/barrier_breaker/14.07/ramips/mt7620a/packages/routing
#src/gz barrier_breaker_telephony http://downloads.openwrt.org/barrier_breaker/14.07/ramips/mt7620a/packages/telephony

如下所示: 执行安装

root@OpenWrt:/etc# opkg update
root@OpenWrt:/etc# opkg install nano
root@OpenWrt:/etc# opkg remove nano

你可能感兴趣的:(OpenWrt配置opkg.conf)