yum
Red Hat package manager
TLDR
On modern distros (RHEL 8+, Fedora 22+), yum is a symlink to dnf.Install a package
$ sudo yum install [package]
Remove a package$ sudo yum remove [package]
Update all packages$ sudo yum update
Update a specific package$ sudo yum update [package]
Search for a package by name$ yum search [keyword]
List installed packages$ yum list installed
Show info about a package$ yum info [package]
Clean cached data$ yum clean all
SYNOPSIS
yum [options] [command] [package...]
DESCRIPTION
yum (Yellowdog Updater Modified) is the traditional package manager for Red Hat-based Linux distributions. On modern systems (RHEL 8+, Fedora 22+), yum is a symlink to dnf, which provides the same functionality with improved performance.On older systems like CentOS 7, yum is the native package manager handling package installation, updates, and removal from configured repositories.
PARAMETERS
install package
Install one or more packages.remove package
Remove a package.update [package]
Update all packages, or a specific package if given.search keyword
Search package names and descriptions.info package
Display detailed information about a package.list [installed|available|updates]
List packages. Use installed for installed, available for repo packages, updates for available updates.clean [all|packages|metadata]
Clean cached data.provides file
Find which package provides a given file.groupinstall group
Install a package group.repolist [all|enabled|disabled]
List configured repositories.history
View transaction history.-y
Assume yes to all prompts.--enablerepo=repo
Temporarily enable a specific repository.--disablerepo=repo
Temporarily disable a specific repository.--nogpgcheck
Skip GPG signature checking.
CAVEATS
On modern systems, yum is an alias for dnf. Behavior may differ slightly between legacy yum and dnf. Use dnf directly on newer systems.
