$ sh -ec 'for tool in node npm python3 bash setpriv; do command -v "$tool"; done; node -e '"'"'if (Number(process.versions.node.split(".")[0]) < 22) throw new Error("Node 22+ required")'"'"'; npm --version; python3 --version'
/usr/local/bin/node
/usr/local/bin/npm
/usr/bin/python3
/usr/bin/bash
/usr/bin/setpriv
10.9.8
Python 3.11.2

$ sh -ec 'if command -v apt-get >/dev/null; then echo apt; elif command -v dnf >/dev/null; then echo dnf; else echo '"'"'setup requires apt-get or dnf'"'"' >&2; exit 1; fi'
apt

$ apt-get update
Hit:1 http://deb.debian.org/debian bookworm InRelease
Get:2 http://deb.debian.org/debian bookworm-updates InRelease [55.4 kB]
Get:3 http://deb.debian.org/debian-security bookworm-security InRelease [34.8 kB]
Get:4 http://deb.debian.org/debian-security bookworm-security/main amd64 Packages [342 kB]
Fetched 432 kB in 1s (783 kB/s)
Reading package lists...

$ env DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends -- git
Reading package lists...
Building dependency tree...
Reading state information...
git is already the newest version (1:2.39.5-0+deb12u3).
0 upgraded, 0 newly installed, 0 to remove and 5 not upgraded.

