vpn,

How to Install OpenVPN on Amazon Linux 2

Mar 12, 2022 · 1 min read · Post a comment
How to Install OpenVPN on Amazon Linux 2

If you try to run yum install openvpn on an Amazon Linux 2 instance you will get: No package openvpn available. It means that it doesn’t exist to the existing yum packages. Let’s see how to install openvpn on Amazon Linux 2 without issues.

Prerequisites

  • Amazon Linux 2
  • sudo access

Install OpenVPN on Amazon Linux 2

Step 1. Update the Amazon Linux 2 packages.

sudo yum update

Step 2. Install the epel repo.

sudo amazon-linux-extras install epel

Step 3. To install openvpn, run:

sudo yum install openvpn

Step 3. Verify the installation and check the version:

openvpn --version

Example output:

OpenVPN 2.4.11 x86_64-redhat-linux-gnu [Fedora EPEL patched] [SSL (OpenSSL)]

Conclusion

Feel free to leave a comment below and if you find this tutorial useful, follow our official channel on Telegram.