Install and Enable EPEL Repo on CentOS 7

40260 views
banner 300x280

Another two cents tip today is about how to install and enable EPEL (Extra Packages for Enterprise Linux) repository on CentOS 7 server / vps but you can also apply the steps on RHEL 7. As a refresh, EPEL repo –which you might already heard it frequently– is an open source and free community based repository project from Fedora team which provides 100% high quality add-on software packages for Linux distribution including RHEL (Red Hat Enterprise Linux), CentOS, and Scientific Linux to provide lots of open source packages like networking, sys admin, programming, monitoring and so on. Shortly, there are many apps you can not install on your CentOS server without adding this popular repo.

By adding EPEL repo in your server’s repository source, you’ll be able to install additional standard open source packages by using YUM command. Yet, but because EPEL repo is 100% open source and free to use; providing lots of open source packages to install via Yum; maintained by Fedora repo officially; and it is also providing any core duplicate packages and no compatibility issues.

Also read:
Tutorial about EPEL Repository installation on CentOS 6 and 5.

How to install EPEL repo

Method #1

Step 1 – Login to your server as root or as a user with root privilege (sudo) via your favorite SSH client like Putty, Terminal, BitVisa, etc.

Step 2 – For easier install, firstly try using yum command:

yum -y install epel-release

Step 3 – Now refresh repositories using this simple command:

yum repolist

screenshot:

yum-install-epel-centos-7

yum-repolis

If that does not work, try this..

Method #2

Step 1 – Download EPEL .rpm file to tmp folder

cd /tmp
wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
ls *.rpm

Step 2 – Then issue command below to install the EPEL .rpm file:

yum install epel-release-7.noarch.rpm

Step 3 – Now you have to also verify that the EPEL repository is already installed successfully and ready to use:

yum repolist

How to Enable and Use EPEL Repo with yum

Step 1 – The main command to use with yum is:

yum --enablerepo=epel [command] [package name]

Replace the [command] part with one of these:

– install
– update
– check-update
– upgrade
– remove or erase
– list
– provides or whatprovides
– search
– info
– clean
– shell
– resolvedep
– localinstall
– localupdate
– deplist

While [package name] can be replaced with the name of the package.

Example, this command below will display information about a package called nginx, the world’s most popular fast Web server:

yum --enablerepo=epel info nginx

screenshot:

yum-info-nginx

Step 2 – Now finally install the package you want to. And the command for that is:

yum --enablerepo=epel install [package name]

example:

yum --enablerepo=epel install nginx

screenshot:

yum-install-nginx-epel

That’s all. You can read all other tutorial about CentOS here.

This post Install and Enable EPEL Repo on CentOS 7 is part of ServerMom.

banner 300x280

Related Search

    1. author

      Maximo Dell2 months ago


      Fatal error: Maximum execution time of 30 seconds exceeded in /home/dimasrio/it-linux.us/wp-includes/formatting.php on line 581