Skip to main content

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

Nothing yet: the first commit is the verbatim v3007.14 module, reformatted since, so the git history shows every change.

Known problem inherited from upstream: pkg.install, pkg.remove and pkg.upgrade call restartcheck.restartcheck after opkg has run. Without psutil that module does not load and the call raises KeyError: 'restartcheck.restartcheck'.

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.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for saltext-opkg 0.1.0
File Size Uploaded
saltext_opkg-0.1.0.tar.gz 20.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for saltext-opkg 0.1.0
File Interpreter ABI Platform
saltext_opkg-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 39.3 kB

Release files / saltext_opkg-0.1.0.tar.gz

Download URL saltext_opkg-0.1.0.tar.gz
Size 20.0 kB
Tags Source
SHA-256 checksum
How to use checksums
6e9b16eb97908457efef11bcbdbf0385aa94add09bfeb36e828dd584ac82ec75
BLAKE2b-256 checksum
How to use checksums
89002405058f0aabd86325454d8a834920524bb94d8b36da62ec06585bdf1690
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.1.0-py3-none-any.whl

Download URL saltext_opkg-0.1.0-py3-none-any.whl
Size 19.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f30e0dedbdc3f7e04948e4d4c0399e0ee4706653af2fe5cd1f2ddd693b0237e3
BLAKE2b-256 checksum
How to use checksums
0970b1a7fbc5e08b6fce3ea6dc53101bb35b48794fa75ce61a648f055e612055
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 history Release notifications | RSS feed

0.2.0

2 release files

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page