1、Openwrt 安装软件目录简介 .1telnet 或 ssh1页面安装 .5简介Openwrt 是个很自由的开源路由器系统,软件包支持几千个,功能很强大!安装的方法主要有两种,telnet 或者 ssh 连接后台安装 和 页面安装。下面的所有步骤的前提是当前的路由器已经联网!telnet 或 ssh原始的 openwrt 默认是没有密码的,只开启了 telnet 没有开启 ssh,当第一次配置完用户名和密码后,关闭了 telnet 开启了 ssh,用户可以随时连上路由器,下面我用 ssh 连接的。Openwrt 管理软件包的命令是 opkg,下面是命令的帮助rootJack:/tmp/opk
2、g-lists# opkg -helpopkg: unrecognized option -helpopkg must have one sub-command argumentusage: opkg options. sub-command arguments.where sub-command is one of:Package Manipulation:update 升级 Update list of available packagesupgrade 升级某一个软件 Upgrade packagesinstall 安装某一个软件 Install package(s)configure
3、配置某一个软件 Configure unpacked package(s)remove 删除软件 Remove package(s)flag Flag package(s)=hold|noprune|user|ok|installed|unpacked (one per invocation)Informational Commands:list 列出 openwrt 所有支持的软件包 List available packageslist-installed 列出本机已经安装的软件包 List installed packageslist-upgradable 列出可以升级的软件包 ist
4、installed and upgradable packageslist-changed-conffiles List user modified configuration filesfiles List files belonging to search List package providing find List packages whose name or description matches info pkg|regexp 显示软件包的信息 Display all info for status pkg|regexp 显示软件包的状态 Display all status f
5、or download 下载一个软件包到当前目录 Download to current directorycompare-versions compare versions using = = print-architecture List installable package architecturesdepends -A pkgname|pat+whatdepends -A pkgname|pat+whatdependsrec -A pkgname|pat+whatrecommends-A pkgname|pat+whatsuggests-A pkgname|pat+whatprovi
6、des -A pkgname|pat+whatconflicts -A pkgname|pat+whatreplaces -A pkgname|pat+Options:-A Query all packages not just those installed-V Set verbosity level to .-verbosity= Verbosity levels:0 errors only1 normal messages (default)2 informative messages3 debug4 debug level 2-f Use as the opkg configurati
7、on file-conf -cache Use a package cache-d Use as the the root directory for-dest package installation, removal, upgrading.should be a defined dest name fromthe configuration file, (but can also be adirectory name in a pinch).-o Use as the root directory for-offline-root offline installation of packa
8、ges.-add-arch : Register architecture with given priority-add-dest : Register destination with given pathForce Options:-force-depends Install/remove despite failed dependencies-force-maintainer Overwrite preexisting config files-force-reinstall Reinstall package(s)-force-overwrite Overwrite files fr
9、om other package(s)-force-downgrade Allow opkg to downgrade packages-force-space Disable free space checks-force-postinstall Run postinstall scripts even in offline mode-force-remove Remove package even if prerm script fails-noaction No action - test only-download-only No action - download only-node
10、ps Do not follow dependencies-nocase Perform case insensitive pattern matching-force-removal-of-dependent-packagesRemove package and all dependencies-autoremove Remove packages that were installedautomatically to satisfy dependencies-t Specify tmp-dir.-tmp-dir Specify tmp-dir.regexp could be somethi
11、ng like pkgname* *file* or similare.g. opkg info libstd* or opkg search *libop* or opkg remove libncur*rootJack:/tmp/opkg-lists#如果你想要安装一个软件,但是不知道什么具体的名字,可以用命令获取到软件包的名字(opkg list |grep 软件名) ,然后安装,比如我想要安装 tftprootJack:/tmp/opkg-lists# opkg list |grep tftpatftp - 0.7-1 - TFTP clientatftpd - 0.7-1 - TFT
12、P servererlang-inets - 5.8 - Erlang/OTP is a general-purpose programming language and runtime environment. Erlang has built-in support for concurrency, distribution and fault tolerance. . This Erlang/OTP package provides a container for Internet clients and servers. Currently a FTP client, a HTTP cl
13、ient and server, and a tftp client and server have been incorporated in Inets.iputils-tftpd - 20101006-1 - Program tftpd from iputils Trivial File Transfer Protocol server.kmod-ipt-nathelper - 3.7.10-1 - Default Netfilter (IPv4) Conntrack and NAT helpers Includes: - ftp - irc - tftptftp-hpa - 0.48-3
14、 - An enhanced version of the BSD TFTP clienttftpd-hpa - 0.48-3 - An enhanced version of the BSD TFTP server通过上面的命令我找到我想要的 tftp 服务器的名字为 tftpd-hpa,这样就可以先用#opkg download tftpd-hpa下载软件包,然后用#opkg install tftpd-hpa来安装。也可以直接用#opkg install tftpd-hpa 会直接先下载再自动安装。最后用#opkg list-installed |grep tftpd-hpa来查看是不是已经安装上了!页面安装进入页面 system-software在 filter 里面输入 “tftpd”,点击“find package”,在下面的 框中就显示出当前 openwrt 支持的软件包,找到需要的,点击 install 即可。见下图