opkg

opkg (https://git.yoctoproject.org/cgit/cgit.cgi/opkg/) is the lightweight package manager of embedded Linux distributions (OpenWrt, Yocto).

opkg has no search verb, so mpm lists the whole catalog (opkg list, whose rows are name - version - description) and refilters it against the query; the description column is dropped, since the definition DSL captures only ids and versions. The other listings are name - version (list-installed) and name - installed - latest (list-upgradable) rows. No operation is marked sudo: opkg’s embedded targets run as root.

Platforms

  • 🅱️ BSD

  • 🐧 Linux

  • ⨂ Unix

Operations

Operation

Supported

Notes

installed

outdated

search

exact and extended search backfilled by mpm

install

upgrade

upgrade_all

remove

sync

cleanup

Ecosystem

  • Accepted purl types: pkg:openwrt, pkg:opkg

Usage

$ mpm --opkg installed
$ mpm --opkg search "query"
$ mpm --opkg upgrade --all
$ mpm install pkg:opkg/hello
$ mpm --dry-run --opkg upgrade --all

Every example above accepts --dry-run, which simulates the underlying manager calls without touching the system: the safe way to watch what mpm would do before trusting it.

Deselect the manager for a single run with --no-opkg, disable it from your configuration, or tune its invocation attributes with per-manager overrides.

Command line

  • CLI names, in lookup order: opkg

The version is probed by running:

$ opkg --version
opkg version 0.3.6 (libsolv 0.7.5)

and extracted with:

r"opkg\s+version\s+(?P<version>\S+)"

Privilege escalation

mpm runs this manager as the current user and never prepends sudo by default. Flip the policy for its privileged operations with --sudo or the per-manager sudo override.

None of its operations needs root.

See privilege escalation for the full policy.

Cooldown

State of opkg’s release-age gating, from the cooldown support table:

  • Status: ❌ None

With --cooldown set, mpm skips this manager’s install and upgrade operations rather than run them unguarded (fail-closed); --allow-unsupported-managers opts back in.

Reference traces

Raw native outputs captured in the bundled definition: the reference mpm’s parsers were written against. If you know opkg well and a transcript below looks wrong, or a newer release changed its output format, report it.

$ opkg list-installed
3rd-party-feed-configs - 1.1-r0
aio-grab - 1.0+git71+c79e264-r0
$ opkg list-upgradable
openpli-bootlogo - 20190717-r0 - 20190718-r0
enigma2-hotplug - 2.7+git1720+55c6b34-r0 - 2.7+git1722+daf2f52-r0
$ opkg list
bash - 5.0-r0 - An sh-compatible command language interpreter
busybox - 1.31.0-r0 - Tiny versions of many common UNIX utilities