Linux Commands Helper
💬 Your AI-powered Linux assistant
yum Command - Package Manager for RPM-based Systems
The yum command is a package manager for RPM-based Linux distributions such as CentOS and Red Hat. It is used to install, update, remove, and manage software packages.
Syntax
yum [options] [command] [package...]
Examples
sudo yum install httpd
Install the httpd package (Apache web server).
sudo yum update
Update all installed packages to the latest version.
sudo yum remove nginx
Remove the nginx package.
Notes
- yum is replaced by
dnf
in newer Fedora and CentOS versions. - Requires root privileges for most operations.
- Configuration files are in
/etc/yum.conf
and/etc/yum.repos.d/
.