Skip to content

[enhancement] Add compatibility with non-APT package managers (e.g., yum, dnf) #1

@gg3-dev

Description

@gg3-dev

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 yum or dnf)
  • 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-release or command -v to 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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions