Skip to content

Latest commit

 

History

History
22 lines (18 loc) · 3.18 KB

yum.md

File metadata and controls

22 lines (18 loc) · 3.18 KB

Yum

Command Description
yum repolist List all enabled repositories
yum list installed Lists all packages that are installed on your system
yum install Installs the specified package, including packages on which it depends
yum check-update Checks whether updates exist for packages that are already installed on your system
yum update Updates all packages, including packages on which they depend
yum remove Removes the specified package
yum --disablerepo=some-repository install some-package Temporarily remove/disable a yum repo
yum-config-manager --disable repository Disable repo
yum-config-manager --add-repo http:​//www.example.com/example.repo Add repo
yum list | grep php List all installed repos starting with "php"
sudo yum replace php72w-common --replace-with=php-common Replace php-common package centos6

-y: Assume yes if prompted

Resources

Oracle
Yum Command Cheat Sheet