Expand description
Linux distribution detection and package manager identification.
Parses /etc/os-release (primary), falls back to /etc/lsb-release,
/etc/arch-release, and /etc/debian_version. Detects the distro family
and the appropriate package manager.
§Validation Assertions
- VAL-PLAT-007: Distro detection identifies correct Linux distribution
- VAL-PLAT-008: Package manager detection matches distro family,
MLSTACK_PKG_MANAGERenv var overrides auto-detection
Structs§
- Distro
Info - Complete distribution information detected from the system.
Enums§
- Distro
Family - Linux distribution family classification.
- Package
Manager - Known package managers.
Functions§
- detect_
distribution - Detect the Linux distribution by parsing system files.
- detect_
package_ manager - Detect the package manager from the distro family or environment override.
- parse_
key_ value_ file - Parse a key-value file (like
/etc/os-release) into a map.