LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

opkg

lightweight package manager used primarily on OpenWrt and other embedded Linux

TLDR

Refresh the package lists
$ opkg update
copy
Install a package from the configured feeds
$ opkg install [package]
copy
Install a local .ipk file
$ opkg install [path/to/package.ipk]
copy
Install onto another destination, such as attached storage
$ opkg install --dest [usb] [package]
copy
Upgrade named packages
$ opkg upgrade [package1] [package2]
copy
Show which installed packages have updates waiting
$ opkg list-upgradable
copy
List everything installed
$ opkg list-installed
copy
Search the catalogue by name pattern
$ opkg find [pattern]
copy
Find which package provides a file
$ opkg search [/usr/bin/wget]
copy
List the files a package installed
$ opkg files [package]
copy
Show what a package depends on
$ opkg depends [package]
copy
Show what depends on a package
$ opkg whatdepends [package]
copy
Uninstall a package
$ opkg remove [package]
copy
Remove a package and everything that needs it
$ opkg remove --force-removal-of-dependent-packages [package]
copy
List configuration files changed since install
$ opkg list-changed-conffiles
copy

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 packages
remove
Remove packages
update
Update package lists from repositories
upgrade
Upgrade installed packages
info
Display package information
list
List available packages
list-installed
List installed packages
search
Find which package owns a file
files
List files installed by a package
--force-depends
Ignore dependency errors
--force-overwrite
Overwrite files from other packages

INSTALL

nix profile install nixpkgs#opkg
copy

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.

SEE ALSO

apt(8), ipkg(8)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid