How to Configure Local YUM Repo Server in Linux

Configure linux yum server, configure local yum server linux, yum server configuration linux, yum server in linux, how to configure local yum server

How to Configure Local YUM Server in Linux

What is YUM?

YUM is a software package manager used for RPM management. YUM(Yellow-dog Updater and Modifier) is another and advanced way of installing the packages in Linux distro's such as Red-hat, Fedora and CentOS.

YUM make easier to resolve software dependencies automatically when we do install, update and remove RPM.

In this tutorial, we will configure only yum server in Linux with local repository. we will cover Network yum server in other articles, So Linux clients can be accessed via FTP, HTTP and NFS.


Whether you perform network installation or local yum repository, you need to dump your Linux OS from DVD.

As part of this article, we will mount the DVD on /media and copy all the DVD Content to local directory /data.
[root @learnitguide ~]# cp -rf /media/* /data
Create a file with repo as extension and specify the YUM details in /etc/yum.repos.d folder.
[root @learnitguide ~]# cd /etc/yum.repos.d/
[root @learnitguide ~]# vi testing.repo
Note : The directory /etc/yum.repos.d/ contaions two .repo files which should be removed or moved to other directory, so that YUM server will check default .repo file it self.Q. What if I don't move or remove the default .repo files from /etc/yum.repos.d/ folder?A: Every time when you try to install packages through YUM, your yum will check all these files for repositories for getting packages which will or will not work and most probably delay is increased in getting those packages from online servers.

The new file which is created contains as follows.
comment ="test"
After entering these entries save and exit from the file.

Let me explain what actually these four entries mean.

[RHEL_dvd] ==>This informs what is the repository name.

comment ==> Its used to see the information about the repo.

baseurl ==> This is the server and path of the repo(here its a local repo so the base url is just a file:///
For example, if you are creating YUM client through FTP then base url should be something like this


gpgcheck ==> This is to check the authentication of the repository, which is disabled in this case.

Local YUM repository is created, now you can install any package you want with yum command. In order to know more about YUM, Please see man pages for YUM.

Note:In-order to use yum repository we have to clean the yum meta data, so before installing any package first time use yum clean all command as shown below.
[root @learnitguide ~]# yum clean all
Ensure the status of the Repo:
[root @learnitguide ~]# yum repolist
Steps to Install the package:
[root @learnitguide ~]# yum install vsftpd

Thats it, you are done. We will cover about network yum server in upcoming articles.
Configure linux yum server, configure local yum server linux, yum server configuration linux, yum server in linux, how to create local yum server, yum server configuration in linux step by step, yum configuration in linux, Configuration in RHEL, How To Set Up and Use Yum Repositories on a CentOS
Leave your comment, stay with us for more. Configure and Install YUM Server In Redhat(RHEL5/6), Step By Step Yum Repository How to Create a Local Yum Repository, Setup Local YUM Server in CentOS and rhel, yum server configuration in rhel5 step by step, yum server configuration in centos, yum server configuration in centos 6, yum server configuration in rhel 6 pdf, yum server configuration in rhel6 step by step, yum server configuration rhel5, configuring yum in rhel5, install yum server on centos, configure yum server, configuring yum server, install yum server on redhat, install yum server on linux, install yum server on windows, how to install yum server in ubuntu, how to install yum server in rhel6, How to Configure Local YUM Server in RHEL6, how to install yum server in rhel7, how to install yum server in centos, step by step yum server installation
July 12, 2015

Post a Comment


Contact Form


Email *

Message *

Powered by Blogger.
Javascript DisablePlease Enable Javascript To See All Widget