My Oracle Support Banner

Oracle Linux: How To Retain Current And Older Linux Packages While Doing Update With 'yum' Command (Doc ID 2022235.1)

Last updated on AUGUST 04, 2018

Applies to:

Linux OS - Version Oracle Linux 5.0 to Oracle Linux 6.6 [Release OL5 to OL6U6]
Linux OS - Version Oracle Linux 5.5 with Unbreakable Enterprise Kernel [2.6.32] to Oracle Linux 6.6 with Unbreakable Enterprise Kernel [3.8.13] [Release OL5U5 to OL6U6]
Information in this document applies to any platform.

Goal

In this document we shall discuss about how to retain current and older Linux packages while updating the Linux OS with the 'yum' command.

Note that /etc/yum.conf configuration file contains a [main] section. If required then we can add many additional options under the [main] section. Some of the key-value pairs in the [main] section affect how yum operates.

A sample /etc/yum.conf configuration file looks as below:

[main]
cachedir=/var/cache/yum/$basearch/$releasever
keepcache=0
debuglevel=2
logfile=/var/log/yum.log
exactarch=1
obsoletes=1
gpgcheck=1
plugins=1
installonlypkgs= kernel-2.6.32-279.2.1.el6.x86_64, kernel-2.6.32-100.24.1.el5
installonly_limit=3
[comments abridged]
# PUT YOUR REPOS HERE OR IN separate files named file.repo
# in /etc/yum.repos.d

 

Solution

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Goal
Solution

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.