opkg update 就是下载仓库里的软件包信息,等同以下脚本
````
#!/bin/sh
architecture=${1-ramips}
chip=${2-mt7620}
wget "
https://downloads.openwrt.org/chaos_calmer/15.05/${architecture}/${chip}/packages/base/Packages.gz" -O /var/opkg-lists/chaos_calmer_base
wget "
https://downloads.openwrt.org/chaos_calmer/15.05/${architecture}/${chip}/packages/base/Packages.sig" -O /var/opkg-lists/chaos_calmer_base.sig
wget "
https://downloads.openwrt.org/chaos_calmer/15.05/${architecture}/${chip}/packages/luci/Packages.gz" -O /var/opkg-lists/chaos_calmer_luci
wget "
https://downloads.openwrt.org/chaos_calmer/15.05/${architecture}/${chip}/packages/luci/Packages.sig" -O /var/opkg-lists/chaos_calmer_luci.sig
wget "
https://downloads.openwrt.org/chaos_calmer/15.05/${architecture}/${chip}/packages/management/Packages.gz" -O /var/opkg-lists/chaos_calmer_management
wget "
https://downloads.openwrt.org/chaos_calmer/15.05/${architecture}/${chip}/packages/management/Packages.sig" -O /var/opkg-lists/chaos_calmer_management.sig
wget "
https://downloads.openwrt.org/chaos_calmer/15.05/${architecture}/${chip}/packages/packages/Packages.gz" -O /var/opkg-lists/chaos_calmer_packages
wget "
https://downloads.openwrt.org/chaos_calmer/15.05/${architecture}/${chip}/packages/packages/Packages.sig" -O /var/opkg-lists/chaos_calmer_packages.sig
wget "
https://downloads.openwrt.org/chaos_calmer/15.05/${architecture}/${chip}/packages/routing/Packages.gz" -O /var/opkg-lists/chaos_calmer_routing
wget "
https://downloads.openwrt.org/chaos_calmer/15.05/${architecture}/${chip}/packages/routing/Packages.sig" -O /var/opkg-lists/chaos_calmer_routing.sig
wget "
https://downloads.openwrt.org/chaos_calmer/15.05/${architecture}/${chip}/packages/telephony/Packages.gz" -O /var/opkg-lists/chaos_calmer_telephony
wget "
https://downloads.openwrt.org/chaos_calmer/15.05/${architecture}/${chip}/packages/telephony/Packages.sig" -O /var/opkg-lists/chaos_calmer_telephony.sig
````