Skip to content
Contents
GuidesOpenWrt

Why apk replaces jq with jq-full on OpenWrt. Understanding virtual providers

The APK virtual dependency allows different packages to provide the same functionality. When installing jq-full, it will replace jq; the replacement plan shall be based on the simulation transaction plan.

Applies to · OpenWrt SNAPSHOT · apk · jq / jq-full

What to check

Simulate dependency resolution on the device, verify explicitly requested packets, candidate providers, and replaced items in the world.

Connect over Ethernet and run the following commands in an SSH session on the router.

apk policy jq jq-full
apk add --simulate jq-full
apk info -a jq-full

How to interpret the result

Review the installation, replacement, and removal lists in Provides and simulated output. Only proceed with replacement when the expected provider is involved; if you also plan to remove a business package dependent on it, retain the current system and verify constraints and source version.

Verify and recover

Review the simulated transaction and required jq functionality before installing. Keep the old package list and stop if unrelated software would be removed.

Related guide · Move from opkg to apk on OpenWrt 25.12

Explore hardware

Comments