Hi friend, this very important if you have VPS CentOS, are you know EPEL ? EPEL is (Extra Packages for Enterprise Linux) by adding EPEL repo in your server’s repository source, you’ll be able to install lots of open source packages via Yum.
EPEL is an open source and free community based repository project which provides 100% high quality add-on software packages for Linux distribution including RHEL (Red Hat Enterprise Linux), CentOS, and Scientific Linux.
HOW TO INSTALL EPEL REPO
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:
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:
HOW TO ENABLE AND USE EPEL REPO WITH YUM
Step 1 – The main command to use with yum is:
<code class="shell plain">yum --enablerepo=epel [</code><code class="shell functions">command</code><code class="shell plain">] [package name]</code>
Replace the [command] part with one of these:
– remove or erase
– provides or whatprovides
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
Step 2 – Now finally install the package you want to. And the command for that is:
yum --enablerepo=epel install [package name]
yum --enablerepo=epel install nginx