Class LinuxPackageManagerHelper
- Namespace
- FishMMO.Installer
- Assembly
- FishMMO-Installer.dll
Detects and wraps the Linux package manager (pacman, apt-get, dnf, yum). Extracted from InstallerProcessHelper to keep infrastructure concerns separated.
public static class LinuxPackageManagerHelper
- Inheritance
-
LinuxPackageManagerHelper
- Inherited Members
Methods
DetectAsync(Dictionary<string, string>)
Detects the available package manager and returns prepopulated update/install commands.
public static Task<PackageManagerInfo?> DetectAsync(Dictionary<string, string> packageNames)
Parameters
packageNamesDictionary<string, string>Dictionary mapping package manager name to the install package argument. E.g. { "pacman": "postgresql", "apt-get": "postgresql postgresql-contrib" }.
Returns
- Task<PackageManagerInfo>
Package manager info, or null if none detected.