saltext-opkg
A Salt extension that restores the opkg execution module — the pkg provider for opkg-based systems (OpenWrt up to 24.10, Turris OS, NI Linux Real-Time, OpenEmbedded).
Source: https://gitlab.com/paulto/saltext-opkg
OpenWrt 25.12 and later use apk instead: see saltext-apk.
Why this exists
Salt 3008 removed salt/modules/opkg.py in its purge of community extensions (it was last present in v3007.14). No replacement extension was published, so on Salt 3008 there is no pkg provider for opkg at all. This package restores it.
What differs from the original
The first commit is the verbatim v3007.14 module, so the git history shows every change since. On top of reformatting:
install,remove,upgradecallrestartcheck.restartcheckonly on NI Linux Real-Time. Upstream called it everywhere, after opkg had already done its work: on a minion withoutpsutiltherestartcheckmodule does not load, so every one of them died withKeyError: 'restartcheck.restartcheck', and withpsutilit answersOnly available on Debian, Red Hat and NI Linux Real-Time based systems., which upstream turned into aCommandExecutionError. Either waypkg.installedreported a failure for a package that was in fact installed.
Install
Into the same environment as Salt (onedir / uv / system):
salt-pip install saltext-opkg
or as a Salt state:
saltext.opkg:
pip.installed:
- bin_env: /usr/bin/salt-pip
Once installed, it loads as the pkg provider on NI Linux Real-Time and on any minion with an /etc/opkg directory.
License
Apache-2.0 — the same license as the Salt code it derives from; see LICENSE. The opkg module is derived from SaltStack's salt/modules/opkg.py; copyright of the original portions remains with the SaltStack authors.
Release files for saltext-opkg 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| saltext_opkg-0.2.0.tar.gz | 21.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| saltext_opkg-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 40.5 kB
Release files / saltext_opkg-0.2.0.tar.gz
| Download URL | saltext_opkg-0.2.0.tar.gz |
|---|---|
| Size | 21.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
faf5f391f88f2a06aae25ca5ec08899f6bc47545e1c265bb13bf1bdf6127122e
|
|
BLAKE2b-256 checksum How to use checksums |
29ef93e964191e297f0d03714846c0557bfa7e473ef32b34e4f4977908e13b3d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.9.30 {"installer":{"name":"uv","version":"0.9.30","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"12","id":"bookworm","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / saltext_opkg-0.2.0-py3-none-any.whl
| Download URL | saltext_opkg-0.2.0-py3-none-any.whl |
|---|---|
| Size | 19.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ac77fa883c8ad5c5100815b3c22915ea1e1a7271c4954043c7e8b41dbe3bedff
|
|
BLAKE2b-256 checksum How to use checksums |
1b8e056c9c56b80499e2dfe59fe805e5284a024dec9c3d9b0e451e87293369e3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.9.30 {"installer":{"name":"uv","version":"0.9.30","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"12","id":"bookworm","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|