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)
We will enter the following
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.