Documentation
Setup and Programming
Installing additional sw packages To update your software to the lastest release of all installed packages:
$ opkg update
$ opkg upgrade
To view a list of the software currently installed on your machine:
$ opkg list_installed
To install a new software package (perl in this example):
$ opkg update
$ opkg install perl
To view a list of all packages that are available for you to install (be prepared, it's a long list):
$ opkg update
$ opkg list
To remove a package you no longer need (again perl for this example):
$ opkg remove perl
Usage information for opkg:
opkg version 0.1.5
usage: opkg [options...] sub-command [arguments...]
where sub-command is one of:
Package Manipulation:
update Update list of available packages
upgrade Upgrade all installed packages to latest version
install
Download and install
(and dependencies)
install Install package
configure [
] Configure unpacked packages
remove
Remove package
flag
... Flag package(s)
=hold|noprune|user|ok|installed|unpacked (one per invocation)
Informational Commands:
list List available packages and descriptions
list_installed List all and only the installed packages and description
files
List all files belonging to
search Search for a package providing
info [pkg|regexp] Display all info for
status [pkg|regexp] Display all status for
download
Download
to current directory.
compare_versions
compare versions using <= < > >= = << >>
print_architecture prints the architecture.
print_installation_architecture
whatdepends [-A] [pkgname|pat]+
whatdependsrec [-A] [pkgname|pat]+
whatprovides [-A] [pkgname|pat]+
whatconflicts [-A] [pkgname|pat]+
whatreplaces [-A] [pkgname|pat]+
prints the installation architecture.
Options:
-A Query all packages with whatdepends, whatprovides, whatreplaces, whatconflicts
-V Set verbosity level to . If no value is
--verbosity provided increase verbosity by one. Verbosity levels:
0 errors only
1 normal messages (default)
2 informative messages
3 debug output
-f Use as the opkg configuration file
-conf Default configuration file location
is /etc/opkg.conf
-d Use as the the root directory for
-dest package installation, removal, upgrading.
should be a defined dest name from
the configuration file, (but can also be a
directory name in a pinch).
-o Use as the root directory for
-offline offline installation of packages.
Force Options (use when opkg is too smart for its own good):
-force-depends Make dependency checks warnings instead of errors
Install/remove package in spite of failed dependences
-force-defaults Use default options for questions asked by opkg.
(no prompts). Note that this will not prevent
package installation scripts from prompting.
-force-reinstall Allow opkg to reinstall a package.
-force-overwrite Allow opkg to overwrite files from another package during an install.
-force-downgrade Allow opkg to downgrade packages.
-force_space Install even if there does not seem to be enough space.
-noaction No action -- test only
-nodeps Do not follow dependences
-force-removal-of-dependent-packages
-recursive Allow opkg to remove package and all that depend on it.
-autoremove Allow opkg to remove packages that where installed automatically to satisfy dependencies.
-test No action -- test only
-t Specify tmp-dir.
--tmp-dir Specify tmp-dir.
regexp could be something like 'pkgname*' '*file*' or similar
eg: opkg info 'libstd*' or opkg search '*libop*' or opkg remove 'libncur*'