Introduction link
Yum, which stands for Yellow dog Updater Modified, is a package manager for Linux distributions like Fedora and Red Hat Enterprise Linux, created by Yellow Dog Linux.
It allows you to manage the installation and updating of software installed on a distribution. It’s a layer on top of RPM that handles downloads and dependencies, similar to Debian’s APT or Mandriva’s Urpmi.
1
| yum reinstall <package>
|
1
| yum localinstall <package.rpm>
|
- Updating packages or a specific package:
- Getting information about a package:
- Installing a package group:
1
| yum groupinstall <group>
|
- Viewing available packages (installed or not):
or
- Viewing available package groups:
- Finding which package a file belongs to (equivalent of apt-file):
1
| yum provides <file/command>
|
or
1
| yum whatprovides <file/command>
|
- Ignoring missing GPG key:
- Listing all installed packages:
- Forcing the protection of an rpm on a specific redhat version:
1
| yum protectbase <package>
|
- Downloading packages only
You will need the yum-downloadonly package first to have this option in yum:
1
| yum install yum-downloadonly
|
Then to download the package:
1
| yum install -y postfix --downloadonly
|
- Viewing the contents of a package:
or
1
| repoquery -qla <package>
|
Last updated
02 Mar 2012, 19:08 +0200. history