Rhel
如何在 RHEL 7.3 上安裝 OpenVPN 客戶端?
我正在
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-rsayum 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
刪除
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
如果您打算使用 yum,您可能想跳過 wget,只需使用 yum 下載軟體包。否則,當您再次執行 yum 時,它會給您一個警告,提示您在 yum 之外更新/安裝軟體包。
yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm