Hello, welcome to Oracle Linux how-to video series.
This video is to help you with configuration of a Linux system for Oracle Linux yum server
and installing software using yum.
All steps and procedures explained and performed in this video are based on Oracle Linux release
7.
Oracle Linux yum server hosts many different types of software for Oracle Linux and compatible
distributions, for which the configuration is installed and updated via release packages.
The yum repository configuration is performed via repo files present under /etc/yum.repos.d/
As seen here a sample repo file contains the below entries for various package channels.
It contains the name of the repository, URL for the repository, gpgkey to verify the authenticity
of the packages, the flag whether to perform an authenticity verification or not and the
flag to whether the repository is enabled or not for installation and upgrading of the
packages.
Oracle uses a modularized approach of providing repository configuration file.
In previous years, Oracle provided a single repository configuration file that was shipped
by default on the installation media of each Oracle Linux release.
This file could also be downloaded directly from the Oracle Linux yum server over an HTTP
connection by using a utility like wget or curl.
The original repository configuration files located at yum.oracle.com/public-yum-ol7.repo
and at yum.oracle.com/public-yum-ol6.repo remain available but are deprecated in favor
of the new modularized approach.
While it is still possible to download and use these files, the files may not be updated
for future changes to the Oracle Linux yum server repositories.
You should update your systems to use the modular yum configuration as soon as possible.
To verify if you have the appropriate base oraclelinux-release package installed for
your Oracle Linux release check the following.
For an Oracle Linux server to be using the modularized yum repositories the following
base repo file rpm needs to be installed.
We see that the oraclelinux-release-el7 package is installed.
Also check that you do not have an old monolithic public-yum.repo yum repository configuration
file enabled.
For example, on Oracle Linux 7, the file under /etc/yum.repos.d/public-yum-el7.repo file
should not be present.
We see that it is not present here.
To install or update a package make sure the repository that contains the package is enabled.
The yum repolist command is helpful here.
If you are not sure which repository contains the package open yum.oracle.com and find the
repository which contains the package.
To enable that repository if not already enabled use the yum-config-manager command.
A package can be installed using the yum install command.
Similarly the yum update command is used to update any specific package or the whole system
itself.
Let's see an example of installing a package.
Let us install the chrony package.
So we see that the chrony package is installed.
Here are some useful links that helps you to get a better understanding and more information
on Oracle Linux and the Oracle Linux Yum Server.
That ends our short video on configuring and using the Oracle Linux yum server.
Thank you for watching.