Skip to content

apk in OpenWrt 25.12: the package manager that replaced opkg

New package format and new commands. Don’t mix them with 24.10.

Starting with 25.12, OpenWrt installs and removes software with apk (Alpine Package Keeper, version 3). 24.10 and earlier still use opkg.

The 25.12.0 announcement explains that OpenWrt’s fork of opkg is no longer maintained. Few package names changed, but every command did.

Task apk (25.12) opkg (24.10)
Refresh the package index apk update opkg update
Install apk add <pkg> opkg install <pkg>
Remove apk del <pkg> opkg remove <pkg>
List installed apk list --installed opkg list-installed
List upgradable apk list --upgradeable opkg list-upgradable
Which package owns a file apk info --who-owns <file> opkg search <file>
  • Package files use the .apk extension, and the package index is packages.adb.
  • Repositories are listed under /etc/apk/repositories.d/.
  • Packages you build yourself are unsigned, so installing them needs --allow-untrusted.
  • Don’t use apk upgrade to upgrade the system. The OpenWrt wiki warns against it. Upgrade firmware with an attended sysupgrade client instead: the LuCI app is installed by default on 25.12.
  • Don’t paste opkg commands into 25.12, or apk commands into 24.10. Check which one you have first.
Terminal window
apk list --installed | head
ls /etc/apk/repositories.d/

Sources

Router.Homes

Independent OpenWrt notes. Every page states the firmware, device, package manager and way back.

Icons: Solar by 480 Design, CC BY 4.0