Package源

From WRTnode Wiki Site
Jump to: navigation, search
This page is a translated version of the page Package resources and the translation is 100% complete.

Other languages:
English 100% • ‎中文(中国大陆)‎ 100%

这里package resource提供了ipk。
安装ipk包常用的两种方法:
1:WRTnode能连上网络,从官方下载ipk并安装。
获取opkg的参数:

$opkg --help
Package Manipulation:
        update                  Update list of available packages
        upgrade <pkgs>          Upgrade packages
        install <pkgs>          Install package(s)
        configure <pkgs>        Configure unpacked package(s)
        remove <pkgs|regexp>    Remove package(s)
        flag <flag> <pkgs>      Flag package(s)
         <flag>=hold|noprune|user|ok|installed|unpacked (one per invocation)

......

Force Options:
        --force-depends         Install/remove despite failed dependencies
        --force-maintainer      Overwrite preexisting config files
        --force-reinstall       Reinstall package(s)
        --force-overwrite       Overwrite files from 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
        --force-checksum        Don't fail on checksum mismatches
        --noaction              No action -- test only
        --download-only No action -- download only
        --nodeps                Do not follow dependencies
        --nocase                Perform case insensitive pattern matching
        --force-removal-of-dependent-packages
                                Remove package and all dependencies
        --autoremove            Remove packages that were installed
                                automatically to satisfy dependencies
        -t                      Specify tmp-dir.
        --tmp-dir               Specify tmp-dir.

更新:

$opkg update

安装:

$opkg install xxx  //如果安装此包有其他依赖的软件包或者是安装包的版本与内核指定版本有差异是可以用:opk install xxx --force-depends  --force-overwrite

卸载:

$opkg remove xxx

2:WRTnode不能连上网络,需要把软件下载下来,传到WRTnode的tmp目录并安装ipk。
如果你本地PC系统是linux,可以用scp命令上传ipk;如果是windows,可以借助winscp软件来上传ipk
安装:

$opkg install xxx.ipk

卸载:

$opkg remove xxx.ipk