How to create repository for EPEL on CentOS 7 Linux

I wanna install some software but it is not part of CentOS 7. On ubuntu I can just say

apt install pkg

I am got installed with pkg. But it says enable and create epel repository for EPEL on CentOS 7 Linux? How can I do that?

1 Like

Try running the following command as root user:

### install it ###
yum -y install epel-release

### update and refresh it ###
yum repolist

###  search and install pkg ### 
yum search pkg
yum install pkg

See my page for more info
https://www.cyberciti.biz/faq/installing-rhel-epel-repo-on-centos-redhat-7-x/