How to install EPEL Repository on OEL 7
How to install EPEL Repository on OEL 7
1. Create a repo file like /etc/yum/repos.d/epel-yum-ol7.repo. For example:
# cat /etc/yum.repos.d/epel-yum-ol7.repo
[ol7_epel]
name=Oracle Linux $releasever EPEL ($basearch)
baseurl=http://yum.oracle.com/repo/OracleLinux/OL7/developer_EPEL/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled=1
2. And then run “yum repolist” command to see if repository is in there.
[root@oel7 yum.repos.d]# yum repolist
Loaded plugins: versionlock
ol7_epel | 2.7 kB 00:00:00
(1/3): ol7_epel/x86_64/updateinfo | 6.4 kB 00:00:00
(2/3): ol7_epel/x86_64/group | 365 kB 00:00:00
(3/3): ol7_epel/x86_64/primary_db | 13 MB 00:00:00
Excluding 2 updates due to versionlock (use "yum versionlock status" to show them)
repo id repo name status
ol7_epel/x86_64 Oracle Linux 7Server EPEL (x86_64) 34396+3
repolist: 34396
[root@oel7 yum.repos.d]#
No comments