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

[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

Documentation

For more information on yum:

man yum

Reference

  • Bookmark "Linux - yum command (Yellowdog Updater Modified)" at del.icio.us
  • Bookmark "Linux - yum command (Yellowdog Updater Modified)" at Digg
  • Bookmark "Linux - yum command (Yellowdog Updater Modified)" at Ask
  • Bookmark "Linux - yum command (Yellowdog Updater Modified)" at Google
  • Bookmark "Linux - yum command (Yellowdog Updater Modified)" at StumbleUpon
  • Bookmark "Linux - yum command (Yellowdog Updater Modified)" at Technorati
  • Bookmark "Linux - yum command (Yellowdog Updater Modified)" at Live Bookmarks
  • Bookmark "Linux - yum command (Yellowdog Updater Modified)" at Yahoo! Myweb
  • Bookmark "Linux - yum command (Yellowdog Updater Modified)" at Facebook
  • Bookmark "Linux - yum command (Yellowdog Updater Modified)" at Yahoo! Bookmarks
  • Bookmark "Linux - yum command (Yellowdog Updater Modified)" at Twitter
  • Bookmark "Linux - yum command (Yellowdog Updater Modified)" at myAOL
 
linux/yum.txt · Last modified: 2010/07/03 20:17 by gerardnico