Come installare EPEL repository su CentOS 7

CentOS7-Epel

In questo tutorial, vediamo come abilitare repository EPEL su CentOS 7.

Installare EPEL repository

[root@gidalo ~]# cat  /etc/centos-release
CentOS Linux release 7 (Core)

Scarica EPEL e installalo usando il comando yum come segue:

yum install http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-7.noarch.rpm

NB. è possibile che la versione ‘epel-release-7-7.noarch.rpm’ possa essere stata aggiornata ad una release nuova da quando è stato postato questo articolo, controllate ed eventualmente scaricate la nuova.

Oppure, installare Epel tramite YUM:

yum install epel-release

Esempio di output:

Loaded plugins: fastestmirror, langpacks
epel-release-7-7.noarch.rpm                            |  14 kB     00:00:10     
Examining /var/tmp/yum-root-Iv3M7V/epel-release-7-7.noarch.rpm: epel-release-7-7.noarch
Marking /var/tmp/yum-root-Iv3M7V/epel-release-7-7.noarch.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package epel-release.noarch 0:7-7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package           Arch        Version    Repository                       Size
================================================================================
Installing:
 epel-release      noarch      7-7      /epel-release-7-0.2.noarch       24 k

Transaction Summary
================================================================================
Install  1 Package

Total size: 24 k
Installed size: 24 k
Is this ok [y/d/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : epel-release-7-7.noarch                                    1/1 
  Verifying  : epel-release-7-7.noarch                                    1/1 

Installed:
  epel-release.noarch 0:7-7                                                   

Complete!

Verificare se EPEL repository è installato:

[root@gidalo ~]# yum update
[root@localhost ~]# yum repolist
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: it.centos.contactlab.it
 * epel: ftp.uni-bayreuth.de
 * extras: it.centos.contactlab.it
 * updates: it.centos.contactlab.it
repo id                            repo name                                      status
base/7/x86_64                      CentOS-7 - Base                                  9,00
epel/x86_64                        Extra Packages for Enterprise Linux 7 - x86_64  10,27
extras/7/x86_64                    CentOS-7 - Extras                                  35
updates/7/x86_64                   CentOS-7 - Updates                               2,00

repolist: 21,640
[root@gidalo ~]#

Bene Fatto. 😉


Leggi note dell’autore prima di iniziare!!

Loading