Search tutorial by keyword

How to add repos to Linux


Yum repos are used to install and update various software’s in Linux. Sometimes it happens that you are not able to find a software in that repo and you need to add a new repo to install that software.

Let’s say you want to add a repo in Linux. First step will be that you will download the repo by the following command


After that you will install this repo to your existing server by the following command

#rpm –ivh -release-0.3.6-1.el5.rf.x86_64.rpm

So in this way the repo will be installed to your server 

If you want to add a 3rd party repo then you have to follow the following procedure 

Goto /etc/yum.repos.d

Let’s suppose your repo is named as “virtual”. So we will use 

#vi virtual

And then add the following lines 


name=Virtual for RHEL/ CentOS $releasever - $basearch






Here first argument is the name of your repo, second tells us about the string for your repo name, third is the directory index of your repo, enable when 1 means it’s ON and when 0 means its disabled, gpgcheck is the security feature in repos

Michael Dudli

Cloud Specialist with more than 10 years experience in the Hosting Business.