openwrt
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| openwrt [2017/12/23 03:58] – 外部编辑 127.0.0.1 | openwrt [2025/10/14 06:22] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====更新软件源==== | + | ====1.修改软件源配置文件==== |
| + | 软件源配置文件/ | ||
| + | 如果要更新某个类型的软件包,那么需要将其前面的# | ||
| + | |||
| + | ====2.更新软件源==== | ||
| 命令:opkg update | 命令:opkg update | ||
| 顺利的话运行log如下图:(有时候不行就检查一下是否是没有联网,点背的话可能赶上openwrt.org网站抽风,等一会儿就好) | 顺利的话运行log如下图:(有时候不行就检查一下是否是没有联网,点背的话可能赶上openwrt.org网站抽风,等一会儿就好) | ||
| {{ :: | {{ :: | ||
| - | ====搜索软件==== | + | ====3.搜索软件==== |
| 如何搜索想要的软件,比如我们要搜索python,使用命令:opkg list | grep python | 如何搜索想要的软件,比如我们要搜索python,使用命令:opkg list | grep python | ||
| - | ====安装软件==== | + | ====4.安装软件==== |
| 安装软件,比如python。使用命令:opkg install python | 安装软件,比如python。使用命令:opkg install python | ||
| <code bash> | <code bash> | ||
| Line 33: | Line 37: | ||
| </ | </ | ||
| - | ====卸载软件==== | + | ====5.卸载软件==== |
| 卸载软件,比如卸载python,使用命令:opkg remove python | 卸载软件,比如卸载python,使用命令:opkg remove python | ||
| - | ====依赖失败==== | + | ====6. 列出已安装的软件==== |
| + | 使用命令 opkg list-installed 会列出所有安装的软件包,这包括固件自带的和后来通过opkg install命令安装的所有软件。 | ||
| + | |||
| + | ====7.依赖失败==== | ||
| 安装软件常见的问题是内核版本不一致,依赖检查失败,如下图: | 安装软件常见的问题是内核版本不一致,依赖检查失败,如下图: | ||
| {{ :: | {{ :: | ||
| 这种情况下就不能用opkg安装了,需要在OpenWrt源码中将此软件包重新编译,后续会讲到编译方法。 | 这种情况下就不能用opkg安装了,需要在OpenWrt源码中将此软件包重新编译,后续会讲到编译方法。 | ||
openwrt.1514001493.txt.gz · Last modified: (external edit)
