Monday , April 22 2024

Update Oracle Linux 7

In today’s article, we will explain how to use Oracle Linux as a local repository for its own series.

Oracle Linux 7 operating system can receive updates on security and improvement like other operating systems.

These updates can be made from the internet depending on the version it is connected to, or it can be done from an Oracle Linux 7 installed server within its own structure in order not to tire the internet traffic and to control the current updates.

Today we will tell you how to do this procedure. Our process will be done in two separate phases as Server and Client.

First of all, we will need an Oracle Linux 7 machine for which we will make a local repository and a CSI (Customer Support Identifer), that is, an Oracle support account.

First, we start with the server side.

First of all, we install the createrepo from Yum tools.

Then we register on Oracle CSI.

If you have configured the Oracle Linux 7 operating system with a default installation, the ol7_latest and ol7_UEKR4 repository ”/etc/yum.repos.d/public-yum-ol7.repo ” should come installed. You can make the controls from the relevant location.

By running the following four commands in order, we synchronize the Repository packages to our own server over the internet.

This process will vary depending on the file size and your internet speed.

After the installation process is completed, we can prepare our local infrastructure with the createrepo command.

After our local repository file is prepared, we open them to access via a web server. The client side will read updates from an xml file. We set up and activate our web server.

We make our firewall settings and port 80 is opened to access.

If we are using SeLinux, we add the relevant configuration.

In the first step, we created the repository. We will access them with the web server. We assign the relevant directories from our web server with the symbolic link.

We upload our GPD file to our web server.

We’re done on the server side. Now we can move on to the client side.

Our job in this step is quite simple. With our nano editor, we create a local-ol7.repo file by entering the yum.repos.d subdirectory under the etc directory.

We replace the following lines in the editor with the “repo.server.local” part with our own server name, add the remaining parts exactly and save and exit.

Now all the updates made on the client side will come from the local repository.

So how do we get the newly released update packages on the server side?

Let’s create a script called repo.sh in the scripts subdirectory in the repo directory.

Let’s paste the script below without changing it.

We give execute permission for the script.

Finally, let’s add it to the crontab.

All processes are ready for local repository.

Loading

About Buğra PARLAYAN

Burgra Parlayan is an experienced Database and Weblogic Administrator. After completing his technical / relevant training he has got involved with a serious amount of projects. He successfully managed database upgrade, database migration, database performance tuning projects for various public institutions.Currently he has been employed by one of the leading financial institutions called Turkiye Hayat & Emeklilik as responsible administrator for Oracle Database and Oracle Middleware. He has been sharing his experience and knowledge by face to face training, personal blog and various social networking accounts to support the Oracle ecosystem continuously since 2010.

Leave a Reply

Your email address will not be published. Required fields are marked *

Categories