For router owners
Install a package from a feed
How to subscribe an OpenWrt router to a feed and install a package from it. For router owners on any release.
- Three steps: trust the feed's key, add the repository, install by name.
- One command does the first two on any release. Then you install by name.
- Manual steps differ by release: 25.12 and later use apk, 24.10 and earlier use opkg. The two share nothing here.
Find it fast:
- One line, either release
- By hand: 25.12 and later (apk)
- By hand: 24.10 and earlier (opkg)
- Three common mistakes
- What the signature does and does not mean
- Remove a feed
dropbear and win. apk has no
revocation. Install a key because you trust who publishes it, not because a page told you to.One line, either release
wget -qO- https://repo.owfeed.org/subscribe.sh | sh
The script looks at your router, not at you:
- It detects apk or opkg, the architecture and the release line.
- It installs the key and adds the repository.
- It makes both survive a firmware upgrade.
- If you run it twice, nothing doubles.
- If this feed does not publish for your release, the script says so and stops. It adds no URL that 404s.
The script installs no packages. Afterwards, run apk add luci-theme-footstrap, or
opkg install on 24.10.
wget -O subscribe.sh https://repo.owfeed.org/subscribe.sh less subscribe.sh # ~65 lines, half of them comments sh subscribe.sh
owfeed index generates the script from the same config that laid out the feed. So
the script cannot describe a layout the feed does not have. That is the failure the manual steps
below have had at other feeds. It is not a substitute for reading the script.By hand: 25.12 and later (apk)
The same thing, if you would rather do it yourself.
# HTTPS needs these. Stock 25.12 images have them; a custom build may not. apk add ca-bundle libustream-mbedtls # 1. Trust the key wget https://repo.owfeed.org/owfeed-packages.pem \ -O /etc/apk/keys/owfeed-packages.pem # 2. Add the repository — this is the URL of the index file itself echo "https://repo.owfeed.org/releases/25.12/$(cat /etc/apk/arch)/packages.adb" \ > /etc/apk/repositories.d/owfeed-packages.list # 3. Keep both across a firmware upgrade mkdir -p /lib/upgrade/keep.d printf '%s\n' /etc/apk/keys/owfeed-packages.pem \ /etc/apk/repositories.d/owfeed-packages.list > /lib/upgrade/keep.d/owfeed-packages apk update && apk add luci-theme-footstrap
Do not skip step 3. Neither file survives sysupgrade on its own. A missing key is the most
common cause of UNTRUSTED signature after a firmware upgrade.
By hand: 24.10 and earlier (opkg)
# 1. Trust the key. The FILE NAME must be the key id — opkg looks it up by that. wget https://repo.owfeed.org/9040356b214084da \ -O /etc/opkg/keys/9040356b214084da # 2. Add the repository — here it is the URL of the DIRECTORY echo "src/gz owfeed-packages https://repo.owfeed.org/releases/24.10/$(. /etc/openwrt_release; echo $DISTRIB_ARCH)" \ >> /etc/opkg/customfeeds.conf opkg update && opkg install luci-theme-footstrap
Three common mistakes
| Do not | Why |
|---|---|
apk add ./package.apk | Installing the file directly writes a pin on its content hash into /etc/apk/world. That file survives sysupgrade, and the package then never upgrades from the feed again. Add the repository and install by name. |
| Expect Attended Sysupgrade to carry packages over | owut forwards no custom repositories. The sysupgrade server's repository_allow_list is empty by default, which denies everything. Re-add the feed after the upgrade. |
| Use a feed URL that redirects | apk does not follow 30x responses (openwrt#17180). If the feed moved, use the new URL directly. |
What the signature does and does not mean
A valid signature says one thing: these bytes are the ones this feed published. It does not say any of these:
- the software is safe;
- it works;
- it is lawful where you are;
- anyone looked at what it does.
Responsibility for what is inside a package is the author's, not the feed's.
How the router checks it
A feed signs its own index, and the index is where trust comes from. apk verifies the index against the key you installed. Then it checks each package against the hash the index recorded.
What a well-run feed adds
A well-run feed verifies each author's own signature against a pinned key before adding its own. It says exactly what it checks. owfeed-packages does. Read that page for any feed before you trust it.
Package signatures
Whether a package carries a signature of its own is up to the feed. apk signature blocks are additive. A package can hold the author's and the feed's at once.
A feed may equally decline to add its own, leaving the author's file exactly as it was built. Neither choice changes how installing by name works: the signed index is what your router checks.
owfeed-packages signs the index and nothing else, so what you install is the author's own file.
Remove a feed
# apk rm /etc/apk/repositories.d/owfeed-packages.list rm /etc/apk/keys/owfeed-packages.pem rm -f /lib/upgrade/keep.d/owfeed-packages apk update # opkg — remove the src/gz line, then rm /etc/opkg/keys/9040356b214084da opkg update
Packages already installed stay. They stop receiving upgrades.
apk info <name> will name.
The full statement is here.