How to install OpenVPN client on RHEL 7.3

amazon ec2openvpnrhelyum

I am using RHEL 7.3 on AWS EC2:

$ cat /etc/*-release
NAME="Red Hat Enterprise Linux Server"
VERSION="7.3 (Maipo)"

I would like to install OpenVPN client and was following these directions. I started by sudo yum update which completed fine. Then

$ sudo yum install epel-release
Loaded plugins: amazon-id, rhui-lb, search-disabled-repos
rhui-REGION-client-config-server-7                                                                                     | 2.9 kB  00:00:00
rhui-REGION-rhel-server-releases                                                                                       | 3.5 kB  00:00:00
rhui-REGION-rhel-server-rh-common                                                                                      | 3.8 kB  00:00:00
No package epel-release available.
Error: Nothing to do
$ sudo yum install openvpn easy-rsa
Loaded plugins: amazon-id, rhui-lb, search-disabled-repos
No package openvpn available.
No package easy-rsa available.
Error: Nothing to do

How can I install OpenVPN client? Do I need add another yum repo? I also tried the suggestions from this post, without success.

UPDATE: I was actually able to get past epel. i did yum-config-manager --enable epel. Then I also successfully installed easy-rsa: yum install easy-rsa. However, when I did yum install openvpn (yum install openvpn), i got:

Error: Package: openvpn-2.3.14-1.el6.x86_64 (epel)
           Requires: dev >= 3.3.2-5

Best Answer

Remove epel-6 repo

yum remove epel-release

Enable epel-7 repo:

wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.‌​noarch.rpm
rpm -ivh epel-release-latest-7.‌​noarch.rpm

Or

wget https://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-9.noarch.rpm
rpm -ivh epel-release-7-9.noarch.rpm

edit the /etc/yum.repos.d/epel.repo file and make sure you have enabled=1

or run yum-config-manager --enable epel

then install openvpn:

yum update
yum install openvpn easy-rsa
Related Question