vpn, aws, amazon linux 2,

How to install OpenVPN on Amazon Linux 2

Mar 12, 2022 · 1 min read · Post a comment

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 privileges

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 installation and check the version:

openvpn --version

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.