2015-12-29 17:23:34 -06:00
|
|
|
# yum
|
|
|
|
|
2020-02-09 07:02:47 -06:00
|
|
|
> Package management utility for RHEL, Fedora, and CentOS (for older versions).
|
2022-12-05 08:57:55 +08:00
|
|
|
> For equivalent commands in other package managers, see <https://wiki.archlinux.org/title/Pacman/Rosetta>.
|
2022-01-25 09:12:34 -07:00
|
|
|
> More information: <https://manned.org/yum>.
|
2015-12-29 17:23:34 -06:00
|
|
|
|
2016-01-07 18:31:27 +01:00
|
|
|
- Install a new package:
|
2015-12-29 17:23:34 -06:00
|
|
|
|
|
|
|
`yum install {{package}}`
|
|
|
|
|
2016-01-07 18:31:27 +01:00
|
|
|
- Install a new package and assume yes to all questions (also works with update, great for automated updates):
|
2015-12-30 14:21:42 +08:00
|
|
|
|
2025-04-20 00:21:53 +03:00
|
|
|
`yum {{[-y|--assumeyes]}} install {{package}}`
|
2015-12-29 17:23:34 -06:00
|
|
|
|
2016-10-27 21:46:11 +01:00
|
|
|
- Find the package that provides a particular command:
|
|
|
|
|
|
|
|
`yum provides {{command}}`
|
|
|
|
|
2016-01-07 18:31:27 +01:00
|
|
|
- Remove a package:
|
2015-12-29 17:23:34 -06:00
|
|
|
|
|
|
|
`yum remove {{package}}`
|
|
|
|
|
2020-10-20 00:28:06 +08:00
|
|
|
- Display available updates for installed packages:
|
|
|
|
|
|
|
|
`yum check-update`
|
|
|
|
|
2021-08-15 19:59:09 +02:00
|
|
|
- Upgrade installed packages to the newest available versions:
|
2015-12-29 17:23:34 -06:00
|
|
|
|
|
|
|
`yum upgrade`
|