Inhaltsverzeichnis

Paket-Installation für Linux Workshop

Diese Seite listet alle wichtigen Pakete auf, die für den Linux Advanced Workshop benötigt werden, mit Installationsanweisungen für verschiedene Distributionen.

Übersicht der Distributionen

Distribution Paketmanager Basis
Debian apt Debian
Ubuntu apt Debian
Linux Mint apt Debian/Ubuntu
Arch Linux pacman Arch
Manjaro pacman Arch
openSUSE zypper SUSE
SUSE Linux Enterprise zypper SUSE
Fedora dnf Red Hat
RHEL / Rocky / Alma dnf/yum Red Hat

Standard-Werkzeuge

Diese Pakete sollten auf allen Systemen installiert sein.

Debian / Ubuntu / Linux Mint

# System aktualisieren
sudo apt update
sudo apt upgrade -y
 
# Basis-Werkzeuge
sudo apt install -y \
  curl wget \
  vim nano \
  git \
  build-essential \
  net-tools \
  htop \
  tree \
  tmux screen \
  zip unzip \
  rsync \
  ssh openssh-client openssh-server

Arch Linux / Manjaro

# System aktualisieren
sudo pacman -Syu
 
# Basis-Werkzeuge
sudo pacman -S --needed \
  curl wget \
  vim nano \
  git \
  base-devel \
  net-tools \
  htop \
  tree \
  tmux screen \
  zip unzip \
  rsync \
  openssh

openSUSE / SUSE Linux Enterprise

# System aktualisieren
sudo zypper refresh
sudo zypper update -y
 
# Basis-Werkzeuge
sudo zypper install -y \
  curl wget \
  vim nano \
  git \
  gcc make \
  net-tools \
  htop \
  tree \
  tmux screen \
  zip unzip \
  rsync \
  openssh

Fedora / RHEL / Rocky / Alma

# System aktualisieren
sudo dnf update -y
 
# Basis-Werkzeuge
sudo dnf install -y \
  curl wget \
  vim nano \
  git \
  gcc make \
  net-tools \
  htop \
  tree \
  tmux screen \
  zip unzip \
  rsync \
  openssh-server openssh-clients

Netzwerk-Tools

Erweiterte Netzwerkanalyse und -konfiguration.

Debian / Ubuntu / Linux Mint

sudo apt install -y \
  iproute2 \
  iputils-ping \
  traceroute \
  dnsutils \
  nmap \
  tcpdump \
  wireshark \
  netcat \
  telnet \
  bind9-dnsutils \
  whois \
  mtr

Arch Linux / Manjaro

sudo pacman -S --needed \
  iproute2 \
  iputils \
  traceroute \
  bind \
  nmap \
  tcpdump \
  wireshark-qt \
  gnu-netcat \
  inetutils \
  whois \
  mtr

openSUSE / SUSE

sudo zypper install -y \
  iproute2 \
  iputils \
  traceroute \
  bind-utils \
  nmap \
  tcpdump \
  wireshark \
  netcat \
  telnet \
  whois \
  mtr

Fedora / RHEL / Rocky / Alma

sudo dnf install -y \
  iproute \
  iputils \
  traceroute \
  bind-utils \
  nmap \
  tcpdump \
  wireshark \
  nc \
  telnet \
  whois \
  mtr

Systemadministration

Tools für Prozessverwaltung, Systemd und Monitoring.

Debian / Ubuntu / Linux Mint

sudo apt install -y \
  systemd \
  sysstat \
  iotop \
  lsof \
  strace \
  procps \
  psmisc \
  lvm2 \
  parted \
  gparted \
  smartmontools

Arch Linux / Manjaro

sudo pacman -S --needed \
  systemd \
  sysstat \
  iotop \
  lsof \
  strace \
  procps-ng \
  psmisc \
  lvm2 \
  parted \
  gparted \
  smartmontools

openSUSE / SUSE

sudo zypper install -y \
  systemd \
  sysstat \
  iotop \
  lsof \
  strace \
  procps \
  psmisc \
  lvm2 \
  parted \
  gparted \
  smartmontools

Fedora / RHEL / Rocky / Alma

sudo dnf install -y \
  systemd \
  sysstat \
  iotop \
  lsof \
  strace \
  procps-ng \
  psmisc \
  lvm2 \
  parted \
  smartmontools

Dateisysteme und Storage

Tools für Dateisystemverwaltung und Storage.

Debian / Ubuntu / Linux Mint

sudo apt install -y \
  e2fsprogs \
  xfsprogs \
  btrfs-progs \
  dosfstools \
  ntfs-3g \
  exfat-fuse exfat-utils \
  nfs-common \
  cifs-utils \
  mdadm

Arch Linux / Manjaro

sudo pacman -S --needed \
  e2fsprogs \
  xfsprogs \
  btrfs-progs \
  dosfstools \
  ntfs-3g \
  exfat-utils \
  nfs-utils \
  cifs-utils \
  mdadm

openSUSE / SUSE

sudo zypper install -y \
  e2fsprogs \
  xfsprogs \
  btrfsprogs \
  dosfstools \
  ntfs-3g \
  exfat-utils \
  nfs-client \
  cifs-utils \
  mdadm

Fedora / RHEL / Rocky / Alma

sudo dnf install -y \
  e2fsprogs \
  xfsprogs \
  btrfs-progs \
  dosfstools \
  ntfs-3g \
  exfat-utils \
  nfs-utils \
  cifs-utils \
  mdadm

Sicherheit

Firewall, SELinux, AppArmor und weitere Sicherheitstools.

Debian / Ubuntu / Linux Mint

sudo apt install -y \
  ufw \
  iptables \
  nftables \
  fail2ban \
  apparmor \
  apparmor-utils \
  aide \
  lynis \
  rkhunter \
  chkrootkit

Arch Linux / Manjaro

sudo pacman -S --needed \
  ufw \
  iptables \
  nftables \
  fail2ban \
  apparmor \
  aide \
  lynis \
  rkhunter

openSUSE / SUSE

sudo zypper install -y \
  ufw \
  iptables \
  nftables \
  fail2ban \
  apparmor-parser \
  apparmor-utils \
  aide \
  lynis \
  rkhunter

Fedora / RHEL / Rocky / Alma

sudo dnf install -y \
  firewalld \
  iptables \
  nftables \
  fail2ban \
  selinux-policy \
  setools-console \
  setroubleshoot-server \
  aide \
  lynis \
  rkhunter

ACL und Extended Attributes

Erweiterte Dateiberechtigungen und Capabilities.

Debian / Ubuntu / Linux Mint

sudo apt install -y \
  acl \
  attr \
  libcap2-bin

Arch Linux / Manjaro

sudo pacman -S --needed \
  acl \
  attr \
  libcap

openSUSE / SUSE

sudo zypper install -y \
  acl \
  attr \
  libcap-progs

Fedora / RHEL / Rocky / Alma

sudo dnf install -y \
  acl \
  attr \
  libcap

Entwicklerwerkzeuge

Compiler, Debugger und Entwicklungstools.

Debian / Ubuntu / Linux Mint

sudo apt install -y \
  build-essential \
  gcc g++ \
  make cmake \
  gdb \
  python3 python3-pip \
  perl \
  ruby \
  nodejs npm

Arch Linux / Manjaro

sudo pacman -S --needed \
  base-devel \
  gcc \
  make cmake \
  gdb \
  python python-pip \
  perl \
  ruby \
  nodejs npm

openSUSE / SUSE

sudo zypper install -y \
  gcc gcc-c++ \
  make cmake \
  gdb \
  python3 python3-pip \
  perl \
  ruby \
  nodejs npm

Fedora / RHEL / Rocky / Alma

sudo dnf install -y \
  gcc gcc-c++ \
  make cmake \
  gdb \
  python3 python3-pip \
  perl \
  ruby \
  nodejs npm

Container und Virtualisierung

Docker, Podman und virtuelle Maschinen.

Debian / Ubuntu / Linux Mint

# Docker
sudo apt install -y \
  docker.io \
  docker-compose
 
# Oder offizielles Docker Repository nutzen
curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh get-docker.sh
 
# Virtualisierung
sudo apt install -y \
  qemu-kvm \
  libvirt-daemon-system \
  libvirt-clients \
  bridge-utils \
  virt-manager

Arch Linux / Manjaro

# Docker
sudo pacman -S --needed \
  docker \
  docker-compose
 
# Virtualisierung
sudo pacman -S --needed \
  qemu \
  libvirt \
  virt-manager \
  bridge-utils

openSUSE / SUSE

# Docker
sudo zypper install -y \
  docker \
  docker-compose
 
# Virtualisierung
sudo zypper install -y \
  qemu \
  libvirt \
  virt-manager \
  bridge-utils

Fedora / RHEL / Rocky / Alma

# Podman (Docker-Alternative)
sudo dnf install -y \
  podman \
  podman-compose
 
# Docker (optional)
sudo dnf install -y \
  docker \
  docker-compose
 
# Virtualisierung
sudo dnf install -y \
  qemu-kvm \
  libvirt \
  virt-manager \
  bridge-utils

Datenbanken

MySQL/MariaDB, PostgreSQL und weitere Datenbanken.

Debian / Ubuntu / Linux Mint

sudo apt install -y \
  mariadb-server mariadb-client \
  postgresql postgresql-contrib \
  sqlite3 \
  redis-server

Arch Linux / Manjaro

sudo pacman -S --needed \
  mariadb \
  postgresql \
  sqlite \
  redis

openSUSE / SUSE

sudo zypper install -y \
  mariadb mariadb-client \
  postgresql postgresql-server \
  sqlite3 \
  redis

Fedora / RHEL / Rocky / Alma

sudo dnf install -y \
  mariadb-server \
  postgresql-server \
  sqlite \
  redis

Webserver

Apache, Nginx und PHP.

Debian / Ubuntu / Linux Mint

# Apache
sudo apt install -y \
  apache2 \
  apache2-utils
 
# Nginx
sudo apt install -y \
  nginx
 
# PHP
sudo apt install -y \
  php php-fpm \
  php-mysql php-pgsql \
  php-curl php-gd php-mbstring php-xml php-zip

Arch Linux / Manjaro

# Apache
sudo pacman -S --needed \
  apache
 
# Nginx
sudo pacman -S --needed \
  nginx
 
# PHP
sudo pacman -S --needed \
  php php-fpm \
  php-apache

openSUSE / SUSE

# Apache
sudo zypper install -y \
  apache2 \
  apache2-utils
 
# Nginx
sudo zypper install -y \
  nginx
 
# PHP
sudo zypper install -y \
  php7 php7-fpm \
  php7-mysql php7-pgsql

Fedora / RHEL / Rocky / Alma

# Apache
sudo dnf install -y \
  httpd \
  httpd-tools
 
# Nginx
sudo dnf install -y \
  nginx
 
# PHP
sudo dnf install -y \
  php php-fpm \
  php-mysqlnd php-pgsql \
  php-curl php-gd php-mbstring php-xml

Backup und Synchronisation

Backup-Tools und Cloud-Sync.

Debian / Ubuntu / Linux Mint

sudo apt install -y \
  rsync \
  rclone \
  borgbackup \
  duplicity \
  restic \
  tar gzip bzip2 xz-utils

Arch Linux / Manjaro

sudo pacman -S --needed \
  rsync \
  rclone \
  borg \
  duplicity \
  restic \
  tar gzip bzip2 xz

openSUSE / SUSE

sudo zypper install -y \
  rsync \
  rclone \
  borgbackup \
  duplicity \
  restic \
  tar gzip bzip2 xz

Fedora / RHEL / Rocky / Alma

sudo dnf install -y \
  rsync \
  rclone \
  borgbackup \
  duplicity \
  restic \
  tar gzip bzip2 xz

Komplett-Installation

Alle Workshop-Pakete auf einmal installieren.

Debian / Ubuntu / Linux Mint - Komplett

#!/bin/bash
# Workshop-Pakete für Debian/Ubuntu/Linux Mint
 
sudo apt update
sudo apt upgrade -y
 
sudo apt install -y \
  curl wget git vim nano \
  build-essential net-tools htop tree tmux screen \
  zip unzip rsync openssh-server openssh-client \
  iproute2 iputils-ping traceroute dnsutils nmap tcpdump \
  wireshark netcat telnet bind9-dnsutils whois mtr \
  systemd sysstat iotop lsof strace procps psmisc \
  lvm2 parted gparted smartmontools \
  e2fsprogs xfsprogs btrfs-progs dosfstools ntfs-3g \
  exfat-fuse exfat-utils nfs-common cifs-utils mdadm \
  ufw iptables nftables fail2ban apparmor apparmor-utils \
  aide lynis rkhunter chkrootkit \
  acl attr libcap2-bin \
  docker.io docker-compose \
  python3 python3-pip \
  apache2 nginx php php-fpm \
  mariadb-server postgresql sqlite3 redis-server \
  borgbackup rclone restic
 
echo "Installation abgeschlossen!"
echo "Starten Sie ggf. Dienste mit: sudo systemctl start <dienst>"

Arch Linux / Manjaro - Komplett

#!/bin/bash
# Workshop-Pakete für Arch Linux/Manjaro
 
sudo pacman -Syu
 
sudo pacman -S --needed \
  curl wget git vim nano \
  base-devel net-tools htop tree tmux screen \
  zip unzip rsync openssh \
  iproute2 iputils traceroute bind nmap tcpdump \
  wireshark-qt gnu-netcat inetutils whois mtr \
  systemd sysstat iotop lsof strace procps-ng psmisc \
  lvm2 parted gparted smartmontools \
  e2fsprogs xfsprogs btrfs-progs dosfstools ntfs-3g \
  exfat-utils nfs-utils cifs-utils mdadm \
  ufw iptables nftables fail2ban apparmor \
  aide lynis rkhunter \
  acl attr libcap \
  docker docker-compose \
  python python-pip \
  apache nginx php php-fpm \
  mariadb postgresql sqlite redis \
  borg rclone restic
 
echo "Installation abgeschlossen!"
echo "Starten Sie ggf. Dienste mit: sudo systemctl start <dienst>"

openSUSE / SUSE - Komplett

#!/bin/bash
# Workshop-Pakete für openSUSE/SUSE
 
sudo zypper refresh
sudo zypper update -y
 
sudo zypper install -y \
  curl wget git vim nano \
  gcc make net-tools htop tree tmux screen \
  zip unzip rsync openssh \
  iproute2 iputils traceroute bind-utils nmap tcpdump \
  wireshark netcat telnet whois mtr \
  systemd sysstat iotop lsof strace procps psmisc \
  lvm2 parted gparted smartmontools \
  e2fsprogs xfsprogs btrfsprogs dosfstools ntfs-3g \
  exfat-utils nfs-client cifs-utils mdadm \
  ufw iptables nftables fail2ban apparmor-parser apparmor-utils \
  aide lynis rkhunter \
  acl attr libcap-progs \
  docker docker-compose \
  python3 python3-pip \
  apache2 nginx php7 php7-fpm \
  mariadb postgresql sqlite3 redis \
  borgbackup rclone restic
 
echo "Installation abgeschlossen!"
echo "Starten Sie ggf. Dienste mit: sudo systemctl start <dienst>"

Fedora / RHEL / Rocky / Alma - Komplett

#!/bin/bash
# Workshop-Pakete für Fedora/RHEL/Rocky/Alma
 
sudo dnf update -y
 
sudo dnf install -y \
  curl wget git vim nano \
  gcc make net-tools htop tree tmux screen \
  zip unzip rsync openssh-server openssh-clients \
  iproute iputils traceroute bind-utils nmap tcpdump \
  wireshark nc telnet whois mtr \
  systemd sysstat iotop lsof strace procps-ng psmisc \
  lvm2 parted smartmontools \
  e2fsprogs xfsprogs btrfs-progs dosfstools ntfs-3g \
  exfat-utils nfs-utils cifs-utils mdadm \
  firewalld iptables nftables fail2ban \
  selinux-policy setools-console setroubleshoot-server \
  aide lynis rkhunter \
  acl attr libcap \
  podman podman-compose \
  python3 python3-pip \
  httpd nginx php php-fpm \
  mariadb-server postgresql-server sqlite redis \
  borgbackup rclone restic
 
echo "Installation abgeschlossen!"
echo "Starten Sie ggf. Dienste mit: sudo systemctl start <dienst>"

Nach der Installation

Dienste aktivieren

# SSH-Server
sudo systemctl enable --now ssh      # Debian/Ubuntu
sudo systemctl enable --now sshd     # Arch/Fedora/SUSE
 
# Docker
sudo systemctl enable --now docker
sudo usermod -aG docker $USER        # Benutzer zur Docker-Gruppe
 
# Apache
sudo systemctl enable --now apache2  # Debian/Ubuntu/SUSE
sudo systemctl enable --now httpd    # Fedora/RHEL
 
# Nginx
sudo systemctl enable --now nginx
 
# MariaDB/MySQL
sudo systemctl enable --now mariadb  # oder mysql
 
# PostgreSQL
sudo systemctl enable --now postgresql
 
# Firewall
sudo systemctl enable --now ufw         # Debian/Ubuntu
sudo systemctl enable --now firewalld   # Fedora/RHEL

Firewall konfigurieren

# UFW (Debian/Ubuntu)
sudo ufw enable
sudo ufw allow ssh
sudo ufw allow 80/tcp
sudo ufw allow 443/tcp
sudo ufw status
 
# Firewalld (Fedora/RHEL)
sudo firewall-cmd --permanent --add-service=ssh
sudo firewall-cmd --permanent --add-service=http
sudo firewall-cmd --permanent --add-service=https
sudo firewall-cmd --reload
sudo firewall-cmd --list-all

Benutzer-Konfiguration

# SSH-Key generieren
ssh-keygen -t ed25519 -C "user@host"
 
# Docker ohne sudo (nach Neuanmeldung aktiv)
sudo usermod -aG docker $USER
 
# Wireshark ohne root
sudo usermod -aG wireshark $USER
 
# Virtuelle Maschinen
sudo usermod -aG libvirt $USER

Paket-Suche

Pakete in verschiedenen Distributionen finden.

Debian / Ubuntu / Linux Mint

# Paket suchen
apt search paketname
apt-cache search paketname
 
# Paketinfo
apt show paketname
apt-cache show paketname
 
# Installierte Pakete
apt list --installed
dpkg -l

Arch Linux / Manjaro

# Paket suchen
pacman -Ss paketname
 
# Paketinfo
pacman -Si paketname
 
# Installierte Pakete
pacman -Q
pacman -Qe  # Explizit installiert

openSUSE / SUSE

# Paket suchen
zypper search paketname
 
# Paketinfo
zypper info paketname
 
# Installierte Pakete
zypper search --installed-only

Fedora / RHEL / Rocky / Alma

# Paket suchen
dnf search paketname
 
# Paketinfo
dnf info paketname
 
# Installierte Pakete
dnf list installed
rpm -qa

Troubleshooting

Paketmanager-Probleme

# Debian/Ubuntu - Kaputte Pakete reparieren
sudo apt --fix-broken install
sudo dpkg --configure -a
sudo apt clean
sudo apt update
 
# Arch - Paketdatenbank aktualisieren
sudo pacman -Sy archlinux-keyring
sudo pacman -Syu
 
# openSUSE - Repository-Probleme
sudo zypper refresh --force
sudo zypper clean
 
# Fedora/RHEL - Cache aufräumen
sudo dnf clean all
sudo dnf makecache

Fehlende Abhängigkeiten

# Debian/Ubuntu
sudo apt install -f
 
# Arch
sudo pacman -S --asdeps <paket>
 
# openSUSE
sudo zypper install --recommends <paket>
 
# Fedora/RHEL
sudo dnf install --best <paket>

Siehe auch