User Tools

Site Tools


openwrt

This is an old revision of the document!


更新软件源

命令:opkg update 顺利的话运行log如下图:(有时候不行就检查一下是否是没有联网,点背的话可能赶上openwrt.org网站抽风,等一会儿就好)

搜索软件

如何搜索想要的软件,比如我们要搜索python,使用命令:opkg list | grep python

安装软件

安装软件,比如python。使用命令:opkg install python

root@Widora:/etc/opkg# opkg install python
Installing python (2.7.9-6) to root...
Downloading http://dl.widora.io/chaos_calmer/15.05.1/ramips/mt7688/packages/packages/python_2.7.9-  6_ramips_24kec.ipk.
Installing python-light (2.7.9-6) to root...
......
Downloading http://dl.widora.io/chaos_calmer/15.05.1/ramips/mt7688/packages/packages/python-pydoc_2.7.9-6_ramips_24k.
Installing python-sqlite3 (2.7.9-6) to root...
Downloading http://dl.widora.io/chaos_calmer/15.05.1/ramips/mt7688/packages/packages/python-sqlite3_2.7.9-6_ramips_2.
Installing libsqlite3 (3081101-1) to root...
Downloading http://dl.widora.io/chaos_calmer/15.05.1/ramips/mt7688/packages/packages/libsqlite3_3081101-1_ramips_24k.
Installing python-unittest (2.7.9-6) to root...
Downloading http://dl.widora.io/chaos_calmer/15.05.1/ramips/mt7688/packages/packages/python-unittest_2.7.9-6_ramips_.
Installing python-xml (2.7.9-6) to root...
Downloading http://dl.widora.io/chaos_calmer/15.05.1/ramips/mt7688/packages/packages/python-xml_2.7.9-  6_ramips_24kec.
Configuring python-base.
Configuring libffi.
......
Configuring python-unittest.
Configuring python-xml.
Configuring python.
Configuring python3-asyncio.

卸载软件

卸载软件,比如卸载python,使用命令:opkg remove python

依赖失败

安装软件常见的问题是内核版本不一致,依赖检查失败,如下图: 这种情况下就不能用opkg安装了,需要在OpenWrt源码中将此软件包重新编译,后续会讲到编译方法。

openwrt.1514001493.txt.gz · Last modified: (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki