Skip to main content

Module detection

Module detection 

Source
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_MANAGER env var overrides auto-detection

Structs§

DistroInfo
Complete distribution information detected from the system.

Enums§

DistroFamily
Linux distribution family classification.
PackageManager
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.