YUM Client Configuration

yum client configuration

0

Yum client configuration is a must work to do after an installation. At the same time configuring yum server is equally necessary for us.

But first let’s configure yum client. The file needs to be saved with the extension of .repo. let’s consider the name of the repository file sysnetprotech.repo

We have to create this file using the bellow command.

#vim sysnetprotech.repo

To configure yum client we need to know the URL of the packages containing location. We can contain packages in any file transfer protocol or over web service. So mostly it is transferred using http or ftp protocols.

Now let’s see how it looks like.

First we need to declare a profile name for the file. Let’s consider the profile name as “sysnetprotech-repo”.

Now let’s consider the baseurl which is the location of the packages are contained.

http://sysnetprotech-repo.sysnetprotech.com/packages/OS/7/

Now let’s start writing the repository file.

[sysnetprotech-repo]

name=sysnetprotech-repo
baseurl= http://sysnetprotech-repo.sysnetprotech.com/packages/OS/7/
enabled=1
gpgcheck=0

now save and exit this.

After this we need to clean the yum cache and then we have to update the yum. To do so we need to run the following commands.

#yum clean all; yum update –y

that’s how we can configure our yum client for our server.

Leave A Reply

Your email address will not be published.