Get 90% OFF the first month of your service

USE COUPON CODE: Q32018

T&Cs Apply

Add Additional Repositories to YUM

This tutorial will show you how to add additional repositories to YUM

Yum is a very useful tool when it comes to downloading and installing applications on your Linux server. It is a great tool for keeping your server up to date with the latest releases of applications and operating system patches. Yum makes the work of a server administrator very easy, Easy enough so that even novice users can easily manage their server.

For users that would like to install yum, head over to our tutorial called Installing YUM onto a VPS Linux Server.

This tutorial will guide you through the steps on adding additional repositories to yum.

Yum is a very useful tool when it comes to downloading and installing applications on your Linux server. It is a great tool for keeping your server up to date with the latest releases of applications and operating system patches. Yum makes the work of a server administrator very easy, Easy enough so that even novice users can easily manage their server. For users that would like to install yum, Head over to our tutorial called Installing YUM onto a VPS Linux Server.

This tutorial will guide you through the steps on adding additional repositories to yum.

Lets assume you have a repository called coolapplications.ausweb.com.au, Create a file called coolweb24:

# cd /etc/yum.repos.d
# vi coolweb24

Then add the following lines to the file:

[coolweb24]
name=CoolWeb24 for RHEL/ CentOS $releasever – $basearch
baseurl=http://coolapplications.ausweb.com.au/centos/$releasever/$basearch/
enabled=1
gpgcheck=1
gpgkey=http://coolapplications.ausweb.com.au/RPM-GPG-KEY.txt

Save and close this file.

Keep in mind, You will need to edit the following:

[coolweb24] – Repository name
name=CoolWeb24 for RHEL/ CentOS $releasever – $basearch – Human readable repository name
baseurl=http://coolapplications.ausweb.com.au/centos/$releasever/$basearch/ – Must be a URL to the directory of the repository
enabled=1 – When set to 1, enables the repository. To disable the repository temporarily, set this value to 0.
gpgcheck=1– Security feature to enable GPG Key checking.
gpgkey=http://coolapplications.web24.com.au/RPM-GPG-KEY.txt – GPL file location.

You will need to import the GPG Key as follows:

# rpm –import http://coolapplications.web24.com.au/RPM-GPG-KEY.txt

Now you are ready to install applications from your newly installed repository!