install |
Install packages
ex. # yum install package
|
reinstall |
reinstall installed packages
ex. # yum reinstall package
|
update |
Update packages
ex. # yum update package
|
downgrade |
Downgrade packages
ex. # yum downgrade package
|
remove |
Uninstall packages
ex. # yum remove package
|
list |
Show the list of packages
ex. # yum list package
|
deplist |
Show package dependencies
ex. # yum deplist package
|
groups |
Display package installation and information by group
ex. # yum groups install "Package Group"
⇒ install packages in [Package Group]
ex. # yum groups list
⇒ show the list of groups
|
check-update |
Show updateable packages
ex. # yum check-update package
|
search |
Search for packages by keyword (partial match)
ex. # yum search keyword
|
info |
Show package summary information
ex. # yum info package
|
provides |
Shows which package contains the file specified in the argument
ex. # yum provides libgcc_s.so.1
|
history |
Display the process history of packages such as updates
ex. # yum history
|
repolist |
Show list of configured repositories
ex. # yum repolist
|
shell |
Enter interactive mode
ex. # yum shell
|
-y |
Answer "yes" to all questions
ex. # yum -y install package
|
--enablerepo=repo |
Temporarily enable the specified repository
ex. # yum --enablerepo=repo install package
|
--disablerepo=repo |
Temporarily disable the specified repository
ex. # yum --disablerepo=repo install package
|
--showduplicates |
View all available versions
ex. # yum list package --showduplicates
|
--downloadonly |
Download the package only
ex. # yum install package --downloadonly
|
--downloaddir=DIR |
Specify the download location for the package
ex. # yum install package --downloadonly --downloaddir=/download
|
--installroot=[path] |
Specify the installation root
ex. # yum --installroot=/chroot install package
|
--exclude=package |
Exclude specific packages
ex. # yum --exclude=package upgrade
|
--releasever=VER |
Temporarily change the $releasever value in your configuration file
ex. # yum ---releasever=8.2 install package
|