Add support for Fedora-based distros (#44)

* Added support for Fedora-based Distributions

* Added gcc
This commit is contained in:
HenryNordin 2025-01-27 20:57:54 +01:00 committed by GitHub
parent 539bc3e002
commit 2870f11a22
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -63,6 +63,9 @@ fi
# Check if user is on Debian-based system
if [ -x "$(command -v apt)" ]; then
sudo apt update && sudo apt install -y axel imagemagick xxd python3 python3-venv python3-pip nodejs npm bc rsync curl zip
# Or if user is on Fedora-based system, do this instead
elif [ -x "$(command -v dnf)" ]; then
sudo dnf install -y gcc axel ImageMagick xxd python3 python3-devel python3-pip nodejs npm bc rsync curl zip
# Or if user is on Arch-based system, do this instead
elif [ -x "$(command -v pacman)" ]; then
sudo pacman -Sy --needed archlinux-keyring && sudo pacman -S --needed axel imagemagick xxd python pyenv python-pip nodejs npm bc rsync curl zip
@ -80,6 +83,8 @@ if ! command -v mkfs.exfat &> /dev/null; then
echo "mkfs.exfat not found. Installing exfat driver..."
if [ -x "$(command -v apt)" ]; then
sudo apt install -y exfat-fuse
elif [ -x "$(command -v dnf)" ]; then
sudo dnf install -y exfatprogs
elif [ -x "$(command -v pacman)" ]; then
sudo pacman -S exfatprogs
fi