Feeds是OpenWrt環(huán)境所需要的軟件包套件。最重要的feeds有:
‘packages’一些額外的基礎路由器特性軟件
‘LuCI’OpenWrt默認的GUI
‘Xwrt’另一種可選的GUI界面
需要能夠連接互聯(lián)網(wǎng)。
在下載之前可以通過查看’feeds.conf.default’文件富稻,來檢查哪些文件需要包含在環(huán)境中沟堡。
開始下載,使用:
[openwrt@localhost trunk]$ ./scripts/feeds update -a
安裝feeds包弱恒,只有安裝之后,在后面的make menuconfig時,才可以對相關配置進行勾選莽红。
[openwrt@localhost trunk]$ ./scripts/feeds install -a
如果更新了feeds的配置文件,需要添加新的軟件包用于生成系統(tǒng)邦邦。只需進行重復操作:
[openwrt@localhost trunk]$ ./scripts/feeds update -a
[openwrt@localhost trunk]$ ./scripts/feeds install -a
可使用的feeds列表配置在feeds.conf目錄下或者feeds.conf.default安吁。這個文件包含了feeds列表,每一行又三部分組成燃辖,feed方法鬼店,feed 名字和feed源
下面是一個feeds.conf.default的例子:
src-git packages https://github.com/openwrt/packages.git
src-git luci http://git.openwrt.org/project/luci.git
src-git routing https://github.com/openwrt-routing/packages.git
src-git telephony http://git.openwrt.org/feed/telephony.git
src-git management https://github.com/openwrt-management/packages.git
src-git oldpackages http://git.openwrt.org/packages.git
#src-svn xwrt http://x-wrt.googlecode.com/svn/trunk/package
#src-svn phone svn://svn.openwrt.org/openwrt/feeds/phone
#src-svn efl svn://svn.openwrt.org/openwrt/feeds/efl
#src-svn xorg svn://svn.openwrt.org/openwrt/feeds/xorg
#src-svn desktop svn://svn.openwrt.org/openwrt/feeds/desktop
#src-svn xfce svn://svn.openwrt.org/openwrt/feeds/xfce
#src-svn lxde svn://svn.openwrt.org/openwrt/feeds/lxde
#src-link custom /usr/src/openwrt/custom-feed
下面是feed支持的方法類型:
src-bzr 通過使用bzr從數(shù)據(jù)源的path/URL下載數(shù)據(jù)
src-cpy 通過從數(shù)據(jù)源path拷貝數(shù)據(jù)
src-darcs 通過使用darcs從數(shù)據(jù)源path/URL下載數(shù)據(jù)
src-git 通過使用git從數(shù)據(jù)源path/URL下載數(shù)據(jù)
src-hg 通過使用hg從數(shù)據(jù)源path/URL 下載數(shù)據(jù)
src-link 創(chuàng)建一個數(shù)據(jù)源path的symlink
src-svn 通過使用svn從數(shù)據(jù)源path/URL下載數(shù)據(jù)
本文章由http://www.wifidog.pro/2015/06/24/openwrt-feed-%E5%88%86%E6%9E%90.html整理編輯,轉載請注明出處