Configuring A Software Repository In RedHat/CentOS 7 Using The Terminal

In some cases you may need to enable third party repositories to be able to install software and updates. In this guide we will go through the all the steps necessary to configure a non Red Hat repository in CentOS using the terminal.

Let’s bring up our terminal and start by creating a file using vim. Make sure you’re either logged in as root or you use sudo.

vim /etc/yum.repos.d/example.repo (replace example with the name of your choice)
Screenshot from 2018-05-22 11_07_02

We will enter the following

Screenshot from 2018-05-22 11_06_26

Now you can save the file by typing :wq

To check and confirm that it was added we will run yum repolist
You should see it in your list

You can now install software provided by that repository.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

Create a website or blog at

Up ↑

%d bloggers like this: