Score:0

No package epel-release available

cd flag

I was trying to install epel-release in a freshly set RHEL 7. By the following command

yum -y install epel-release

And the output was following:

no package epel-release available

What was the reason of this error, and how can I install epel-release?

I was trying to install it so that I could use it to get dnf in my machine. What are effective steps to install it?

Score:1
vn flag
rvs

From documentation:

subscription-manager repos --enable rhel-*-optional-rpms \
                           --enable rhel-*-extras-rpms \
                           --enable rhel-ha-for-rhel-*-server-rpms
yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
Jd_mahmud avatar
cd flag
I tried to do that already. The first command gives me the following output, showing an error: "socket.gaierror: [Errno -2] Name or service not known"
rvs avatar
vn flag
rvs
@Jd_mahmud you should deal with that error first then. It seems it can't resolve one of the redhat's domain names, although unfortunately it doesn't say which one. Does DNS generally work on that machine? Check the settings.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.