Technical Stuff

Start from basics

Configuration of Local Yum Repository

Configuration of Local Yum Repository
Configuration of Local Yum Repository
5 (100%) 2 votes

Hi Everyone! Today we are going to discuss regarding configuration of Local Yum on Linux machine. Yum’s most important function is for adding and removing packages. It adds up to many features in a Linux machine. As per the requirement you can add or remove the packages. Before starting with yum configuration, Lets go into basics.


What is YUM?

YUM stands for Yellow Dog Updater Manager. It is a default package management utility. Yum uses repository to get necessary rpm files. Yum can automatically resolve software dependencies and based on system hardware it can automatically select appropriate version of RPM package from repository


What is Repository?

A Repository is a collection of RPM files. Repository may contain multiple versions of the same RPM package. Repository may contain different builds for different architectures for example one for i686 and other for x86_64. A repository can be configured locally or remotely. Today we are going to discuss configuration of local repository.

So, Lets begin with configuration of Yum local repository.

Step 1 : Copy the packages from base server to required server.

Command : scp -r /Packages [email protected]_address:/path

Step 2 : Create Repository

Command : createrepo /Packages

Step 3 : Create file in default repo location.

Default Location : /etc/yum.repos.d

Command : vi /etc/yum.repos.d/local.repo

Here, New file is created local.repo

Step 4 : Once file is created, write below statement into it.

Command : vi local.repo

Click on ‘i’ (To insert)






Press Colon and wq! (Save and Exit Recursive)

Step 5 : Now delete the cache or yum cache using below command.

Command: yum clean  all

Step 6 : Now, Enable yum repository using below command.

Command: yum repolist all

I will share some of the important commands related to Yum which will be helpful to you for rest of your career.

  1. To install new package in YUM

Syntax : yum install package name

For Example : yum install httpd.


  1. To delete existing package in YUM

Syntax : yum remove package name

For Example : yum remove httpd.


  1. To update the package

Command : yum update


  1. To list the package

Command : yum list pkg_name

For Ex : yum list firefox


  1. To search a package

Command : yum search pkg_name

For ex : yum search firefox


  1. To list all installed packages.

Command : yum list installed | less


  1. To check available updates.

Command : yum check-update


  1. To update system

Command : yum  update


  1. List enabled Yum repositories

Command : yum repolist


10.List enabled and disabled Yum repositories.

Command : yum repolist all


  1. To clean Yum cache

Command : yum clean all


  1. View history of Yum

Command : yum history



Do let me know, how you find the blog. Was it helpful to you ? So, if you like the blog. Do subscribe to get notified…!!!

Thank You !
Happy Learning !!!
If you have doubt or queries, you can definetely comment us or can mail us on [email protected]

If you have any Recommendation for future blog, You can email us on [email protected]

Top Searches :

  1. Best Patching Guide
  2. 2. Top Linux Commands
  3. Introduction to linux.
  4. Websphere hack
  5. My Story – Jboss Hardening
  6. Installation and configuration of Apache 2.2 on Linux
  7. DB Auto Re-connect.

7.Redirection in Jboss.

8.SSL Implementation in Jboss

9.Best SSL Guide.

10.Types of SSL.

11.Best Jboss Server Security Guide.

12.Introduction to hardening in Middleware.

13.Hardening In Jboss EAP 5.1

14.Enable TLS1.2 in Jboss EAP 7




Leave a Reply

%d bloggers like this: