我正在RHEL 7.3
使用AWS EC2
:
$ cat /etc/*-release
NAME="Red Hat Enterprise Linux Server"
VERSION="7.3 (Maipo)"
我想安装OpenVPN
客户端并正在关注这些方向。我一开始就sudo yum update
完成得很好。然后
$ 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
如何安装 OpenVPN 客户端?我需要添加另一个yum
存储库吗?我也尝试了来自的建议这个帖子, 没有成功。
更新: 我实际上能够通过 epel。我做到了yum-config-manager --enable epel
。然后我也成功安装了 easy-rsa: yum install easy-rsa
。然而,当我执行 yum install openvpn ( yum install openvpn
) 时,我得到:
Error: Package: openvpn-2.3.14-1.el6.x86_64 (epel)
Requires: dev >= 3.3.2-5
答案1
删除epel-6
存储库
yum remove epel-release
启用epel-7
存储库:
wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
rpm -ivh epel-release-latest-7.noarch.rpm
或者
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
编辑/etc/yum.repos.d/epel.repo
文件并确保你有enabled=1
或运行yum-config-manager --enable epel
然后安装openvpn
:
yum update
yum install openvpn easy-rsa
答案2
如果您打算使用 yum,您可能需要跳过 wget,只使用 yum 下载软件包。否则,当您再次运行 yum 时,它会向您发出有关在 yum 之外更新/安装软件包的警告。
yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm