-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
Description
Summary
The current script utm_vm_setup.sh assumes the target system uses APT (apt update, apt install, etc.), which limits compatibility to Debian-based distributions like Ubuntu and Kali.
Problem
This prevents the script from being used on systems like:
- RHEL, CentOS, Rocky Linux (which use
yumordnf) - Arch-based systems (which use
pacman) - Alpine Linux (which uses
apk)
Proposed Solution
Refactor the script to detect the underlying package manager dynamically and adapt the install commands accordingly.
Example approach:
- Use
/etc/os-releaseorcommand -vto detect distro/PM - Define install command as a variable (e.g.,
PKG_INSTALL) - Apply appropriate install logic based on the detected environment
Tasks
- Detect package manager
- Abstract package install command
- Test against at least 1 non-APT distro
Reactions are currently unavailable