Skip to main content

Salt extension restoring the apk package provider (apkpkg) removed from Salt core in 3008

Project description

saltext-apk

A Salt extension that restores the apkpkg execution module — the pkg provider for apk-based systems (Alpine Linux; OpenWrt 25.12+).

Why this exists

Salt 3008 removed salt/modules/apkpkg.py in its purge of community extensions (it was last present in v3007.14). Unlike many purged modules — saltext-zfs, for example — no replacement extension was published, so on Salt 3008 there is no pkg provider for apk at all. This package restores it.

It matters now because OpenWrt 25.12 switched its package manager from opkg to apk: Salt 3008 minions on OpenWrt have no working pkg module without this.

Status

0.1.0 is the v3007.14 module repackaged unchanged (only reformatted with ruff), so it behaves exactly as it did in Salt core: it enables on os_family == "Alpine", and on OpenWrt you still need a providers: pkg: apkpkg override.

The OpenWrt adaptation lands in 0.2.0:

  • __virtual__ auto-detecting apk by its presence, so it loads on OpenWrt (os_family: OpenWrt) too — no override.
  • list_pkgs using apk list --installed --manifest to correctly parse packages whose names contain hyphens or whose versions lack a -rN suffix — e.g. luci-app-mwan3 25.360.65088~78a62f2, which the original recorded under the wrong name so pkg.installed could never confirm it.

Install

Into the same environment as Salt (onedir / uv / system):

salt-pip install saltext-apk

or as a Salt state:

saltext.apk:
  pip.installed:
    - bin_env: /usr/bin/salt-pip

License

Apache-2.0 — the same license as the Salt code it derives from; see LICENSE. The apkpkg module is derived from SaltStack's salt/modules/apkpkg.py; copyright of the original portions remains with the SaltStack authors.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

saltext_apk-0.1.0.tar.gz (12.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

saltext_apk-0.1.0-py3-none-any.whl (11.4 kB view details)

Uploaded Python 3

File details

Details for the file saltext_apk-0.1.0.tar.gz.

File metadata

  • Download URL: saltext_apk-0.1.0.tar.gz
  • Upload date:
  • Size: 12.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for saltext_apk-0.1.0.tar.gz
Algorithm Hash digest
SHA256 7c1cd02db89110a25c14b21f3316279b5b2bd6191c0b4a496e85f3d965aaa8b8
MD5 e99fc3d7de504781c13959d89b32daf0
BLAKE2b-256 05f347597cc7e0fdd8be4fedd4ad8e86f9fbf3c59908eec66141ae2090e8e050

See more details on using hashes here.

File details

Details for the file saltext_apk-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: saltext_apk-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 11.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for saltext_apk-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d65eb7e3bb636634553409c1451be78a1c7ee70ea8285331e1a95b3fa5c6ff87
MD5 4fb7cbd081736885b94710495fc3306e
BLAKE2b-256 fdb8126e20e01160e4f499d3303d512af8de1ce3f54c7f82f5b3733465ae8b35

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page