opkg
TLDR
Install a package
SYNOPSIS
opkg command [options] [packages]
DESCRIPTION
opkg is a lightweight package manager used primarily on OpenWrt and other embedded Linux systems. It provides functionality similar to apt or yum but with minimal resource requirements suitable for routers and IoT devices.
The package manager handles dependencies, downloads packages from configured repositories, and manages the installation database. Configuration is stored in /etc/opkg.conf and repository lists in **/etc/opkg/*.conf**.
Space is often limited on embedded devices, so opkg supports installing packages to external storage and manages package state efficiently.
PARAMETERS
install
Install packagesremove
Remove packagesupdate
Update package lists from repositoriesupgrade
Upgrade installed packagesinfo
Display package informationlist
List available packageslist-installed
List installed packagessearch
Find which package owns a filefiles
List files installed by a package--force-depends
Ignore dependency errors--force-overwrite
Overwrite files from other packages
CAVEATS
Package lists must be updated (opkg update) before installing new packages. Storage space on embedded devices is limited; check available space before installing. Some packages require rebooting the device to take effect. Dependencies may require manual resolution on resource-constrained systems.


