The following steps will use Homebrew on macOS.
- Make sure your brew repositories are up to date.
brew update
If you are currently up-to-date, you will be presented with the following message
Already up-to-date.
- Install OpenVPN with brew
brew install openvpn
- Get brew installation information.
brew info openvpn
You should then receive a similar output as follows:
openvpn: stable 2.4.8 (bottled) SSL/TLS VPN implementing OSI layer 2 or 3 secure network extension https://openvpn.net/index.php/download/community-downloads.html /usr/local/Cellar/openvpn/2.4.8 (84 files, 1.4MB) Poured from bottle on 2019-12-06 at 13:35:51 From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/openvpn.rb ==> Dependencies Build: pkg-config ✘ Required: lz4 ✔, lzo ✔, openssl@1.1 ✔, pkcs11-helper ✔ ==> Requirements Required: macOS >= 10.10 ✔ ==> Caveats To have launchd start openvpn now and restart at startup: sudo brew services start openvpn ==> Analytics install: 6,513 (30 days), 19,105 (90 days), 58,279 (365 days) install-on-request: 6,050 (30 days), 17,638 (90 days), 52,988 (365 days) build-error: 0 (30 days)
- The brew installation path should look similar to the following:
/usr/local/Cellar/openvpn/2.4.8
- In the terminal, export your PATH as follows.
export PATH=$PATH:/usr/local/Cellar/openvpn/2.4.8/sbin
- Verify installation and PATH are a success.
$ openvpn OpenVPN 2.4.8 x86_64-apple-darwin19.0.0 [SSL (OpenSSL)] [LZO] [LZ4] [PKCS11] [MH/RECVDA] [AEAD] built on Nov 1 2019