openwrt安装软件的两个方法

root@openwrt:/# opkg -h

opkg: unrecognized option `h

opkg must have one subcommand argument

usage: opkg [options...] subcommand [arguments...]

where subcommand is one of:

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)

Informational Commands:

        list                    List available packages

        listinstalled          List installed packages

        listupgradable         List installed and upgradable packages

        listchangedconffiles  List user modified configuration files

        files <pkg>             List files belonging to <pkg>

        search <file|regexp>    List package providing <file>

        find <regexp>           List packages whose name or description matches <regexp>

        info [pkg|regexp]       Display all info for <pkg>

        status [pkg|regexp]     Display all status for <pkg>

        download <pkg>          Download <pkg> to current directory

        compareversions <v1> <op> <v2>

                            compare versions using <= < > >= = << >>

        printarchitecture      List installable package architectures

        depends [A] [pkgname|pat]+

        whatdepends [A] [pkgname|pat]+

        whatdependsrec [A] [pkgname|pat]+

        whatrecommends[A] [pkgname|pat]+

        whatsuggests[A] [pkgname|pat]+

        whatconflicts [A] [pkgname|pat]+

Options:

        A                      Query all packages not just those installed

        V[<level>]             Set verbosity level to <level>.

        verbosity[=<level>]   Verbosity levels:

                                        0 errors only

                                        1 normal messages (default)

                                        2 informative messages

                                        3 debug

                                        4 debug level 2

        f <conf_file>          Use <conf_file> as the opkg configuration file

        conf <conf_file>

        cache <directory>     Use a package cache

        d <dest_name>          Use <dest_name> as the the root directory for

        dest <dest_name>      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>                Use <dir> as the root directory for

        offlineroot <dir>    offline installation of packages.

        addarch <arch>:<prio>        Register architecture with given priority

        adddest <name>:<path>        Register destination with given path

Force Options:

        forcedepends         Install/remove despite failed dependencies

        forcemaintainer      Overwrite preexisting config files

        forcereinstall       Reinstall package(s)

        forceoverwrite       Overwrite files from other package(s)

        forcedowngrade       Allow opkg to downgrade packages

        forcespace           Disable free space checks

        forcepostinstall     Run postinstall scripts even in offline mode

        forceremove  Remove package even if prerm script fails

        noaction              No action test only

        downloadonly No action download only

        nodeps                Do not follow dependencies

        nocase                Perform case insensitive pattern matching

        forceremovalofdependentpackages

                                Remove package and all dependencies

        autoremove            Remove packages that were installed

                                automatically to satisfy dependencies

        t                      Specify tmpdir.

        tmpdir               Specify tmpdir.

regexp could be something like ‘pkgname*’ ‘*file*’ or similar

e.g. opkg info ‘libstd*’ or opkg search ‘*libop*’ or opkg remove ‘libncur*’

root@openwrt:/#

原文链接:https://www.pianshen.com/article/43881532001/

© 版权声明
THE END
喜欢就支持一下吧
点赞8 分享