Kurzreferenz

YUM Paketmanager Spickzettel

Kurzreferenz für YUM (Yellowdog Updater, Modified) unter Red Hat, CentOS und Fedora: Paketabfragen, Installation, Sicherheitsupdates und Repos.

· Veröffentlicht

YUM (Yellowdog Updater, Modified) ist ein quelloffenes Befehlszeilen-Werkzeug zur Paketverwaltung für RPM-basierte Linux-Distributionen.

Befehle

Hilfe & Pakete auflisten

yum help                     # Display yum commands and options
yum list available           # List all available packages
yum list installed           # List all installed packages
yum list kernel              # List installed and available kernel packages
yum info vsftpd              # List information about vsftpd package

Suche & Abhängigkeiten

yum deplist nfs-utils        # List dependencies for nfs-utils
yum provides "*bin/top"      # Show package providing top command
yum search samba             # Find packages matching samba in name or description

Updates & Sicherheit

yum updateinfo security      # Get info on available security updates
yum update --security        # Apply security-related package updates

Repositorys verwalten

yum repolist                     # Display enabled software repositories
yum repoinfo rhel-7-server-rpms  # Display info on a specific repository
yum repo-pkgs my-rpms list       # List packages from a specific repo

Installation & Entfernen

yum install vsftpd           # Install the vsftpd package
yum update                   # Update all installed packages
yum downgrade abc            # Downgrade package abc to an earlier version
yum autoremove httpd         # Remove package httpd and unused dependencies

Paketgruppen

yum groupinstall "Web server"    # Install Web Server group packages

Wartung & Verlauf

yum history list             # List all yum transactions
yum clean packages           # Delete downloaded packages saved in cache

Häufige Flags

-y                           # Automatically answer yes to prompts
--disablerepo=epel           # Temporarily disable a specific repository
--downloadonly               # Download package to cache without installing

Verwandte Themen