哪裡能取得到套件包
- OpenWrt有一個 套件管理系統.
- OpenWrt提供了一個軟體來源(Software repository),目前(2011-二月)大概有2000個套件,不,我没有寫錯,就是這麼多。
- 其他專案所提供的軟體來源
- 用
opkg來管理安裝與移除。
官方套件包
官方的OpenWrt軟件包可以在軟體來源伺服器的package文件夾下找到。在各個packages文件夾下可以找到只包含shell腳本的套件包,因此當然是本體無關的,所有的包含二進位文件的套件包都是本體相關的。並且一些,例如kmods,是需要特定kernel支援的。
每個發行版本都有它自己的目錄包含子目錄,支援不同的平台,每個平台的目錄包含了不同的targets和包目錄包含可安裝IPK檔案。
- 你可以在這裡找到http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/針對ar71xx平台的快照發行版本
- 你可以在這裡找到http://downloads.openwrt.org/backfire/10.03/brcm47xx/packages/針對brcm47xx平台的OpenWrt 10.03 'Backfire'稳定版
- 你可以在這裡http://downloads.openwrt.org/kamikaze/8.09.2/ar7/packages/找到針對ar7平台的OpenWrt 8.09.2 'Kamikaze'稳定版(已過時)
遗留的'White Russian'套件包在http://downloads.openwrt.org/whiterussian/packages/和Backport repository依然是可用的。
大多數套件包的tar-balls格式打包的原始碼可以在http://downloads.openwrt.org/sources/和http://mirror2.openwrt.org/sources/找到。
建立自訂套件包
→ 如何建立套件包 教你使用toolchain (Buildroot)建立OpenWrt的自訂套件包
→ crosscompile 一個簡單的範例程式
Third party packages
Third party packages are untested and unsupported by OpenWrt, and no warranties are made about their safety or usefulness. They could very well contain backdoors and such. So install only packages from sources, you trust! Please get support for third-party packages from the maintainers of those packages, not the OpenWrt developers.
Common sources for such packages include:
- NSLU2 "optware" - package feed targeted at devices with external storage
Usage of the OPKG package manager
→ opkg – Technical Reference. Below you see a very short outtake:
| Command | Description |
|---|---|
opkg |
Print a list of all available commands and options |
opkg update |
Download the current list of packages available |
opkg list |
View the list of all packages in the current package list. Use with regular expressions |
opkg list_installed |
View the list of installed packages |
opkg install umurmur |
Install the package named umurmur, can also use a FQDN instead, e.g. opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/umurmur-polarssl_0.2.6-1_ar71xx.ipk |
opkg remove umurmur |
Remove the umurmur package |
| Option | Option long | Description |
|---|---|---|
| -V <level> | –verbosity <level> | Set verbosity level to <level>. 0 = errors only, 1 = normal messages (def), 2 = informative messages, 3 = debug, 4 = debug level 2 |
| -d <dest_name> | –dest <dest_name> | Use <dest_name> as the the root directory for package installation, removal, upgrading. <dest_name> should be a defined dest name from the configuration file, (but can also be a directory name in a pinch). |
| -o <dir> | –offline-root <dir> | Use <dir> as the root directory for offline installation of packages. |
External storage
→ opkg – Technical Reference: Installation Destinations
→ Mounting Filesystems for various ways to mount external storage
zh-tw/doc/packages.txt · Last modified: 2012/07/10 15:55 by a0951020223
