Linux - yum command (Yellowdog Updater Modified)
About
yum is a software package manager. It is a tool for installing, updating, and removing packages and their dependencies on RPM-based systems. It automatically computes dependencies and figures out what things should occur to install packages. It makes it easier to maintain groups of machines without having to manually update each one using rpm.
Features include:
- Support for multiple repositories
- Simple configuration
- Dependency calculation
- Fast operation
- RPM-consistent behavior
- Package group support, including multiple-repository groups
- Simple interface
up2date is now deprecated in favor of yum (Yellowdog Updater Modified). The entire stack of tools which installs and updates software in Red Hat Enterprise Linux 5.2 is now based on yum.
Articles Related
Configuration
The Oracle public yum server offers a free and convenient way to install packages from the Enterprise Linux and Oracle VM installation media via a yum client.
All configuration steps are detailed in the Oracle Public Yum home page
- Get your version and your update
[root@oel11g yum.repos.d]# cat /etc/enterprise-release Enterprise Linux Enterprise Linux Server release 5.3 (Carthage) <------OEL 5 Update 3
- Download and copy the appropriate yum configuration file in place:
[root@oel11g tmp]# cd /etc/yum.repos.d [root@oel11g yum.repos.d]# dir [root@oel11g yum.repos.d]# wget http://public-yum.oracle.com/public-yum-el5.repo --21:01:30-- http://public-yum.oracle.com/public-yum-el5.repo Resolving public-yum.oracle.com... 141.146.44.34 Connecting to public-yum.oracle.com|141.146.44.34|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 1864 (1.8K) [text/plain] Saving to: public-yum-el5.repo 100%[=======================================>] 1,864 --.-K/s in 0s 21:01:30 (518 MB/s) - public-yum-el5.repo saved [1864/1864]
- Open the yum configuration file in a text editor
- Locate the section in the file for the repository you plan to update from, e.g. [el5_u3_base]
- Change with vi enabled=0 to enabled=1
[root@oel11g yum.repos.d]# vi public-yum-el5.repo
Example:
[el5_u3_base] name=Enterprise Linux $releasever U3 - $basearch - base baseurl=http://public-yum.oracle.com/repo/EnterpriseLinux/EL5/3/base/$basearch/ gpgkey=http://public-yum.oracle.com/RPM-GPG-KEY-oracle-el5 gpgcheck=1 enabled=1
- You are ready to use it (for instance to install oracle validated package)
Documentation
For more information on yum:
- you can also use man on a running Fedora system for basic information:
man yum
- The home of the yum project is http://yum.baseurl.org/.