Skip to content

Conversation

@thiagomorales
Copy link

@thiagomorales thiagomorales commented Apr 30, 2025

Description

This PR adds support for the latest stable OpenVPN 2.6 releases on Amazon Linux 2 by utilizing the Fedora COPR repository maintained by dsommers. This ensures Amazon Linux 2 users have access to the most current and secure version of OpenVPN.

Changes

  • Added installation of yum-plugin-copr package to support the COPR repository
  • Enabled the specific repository (dsommers/openvpn-release-2.6) for OpenVPN 2.6
  • Added clear comments explaining the purpose of these changes
  • Included a reference URL to the official OpenVPN software repository documentation

Why this matters

Amazon Linux 2 users previously did not have access to the latest OpenVPN releases through standard repositories. This change improves security and feature availability by providing access to the most current version.

Testing

  • Tested on Amazon Linux 2 instance
  • Verified successful installation of OpenVPN 2.6
  • Confirmed functionality with client connections

image

The change is minimal and focused only on the Amazon Linux 2 installation path.

@angristan
Copy link
Owner

angristan commented Dec 9, 2025

Thanks, I ended up using repos for all distributions in #1323

angristan added a commit to omidshojaee/openvpn-install that referenced this pull request Dec 9, 2025
…an#1323)

## Summary

- Install OpenVPN from official upstream repositories instead of
distribution packages
- Gets the latest stable releases with security fixes and new features
- Properly cleans up repos and GPG keys on uninstall

## Repository sources

| OS | Repository |
|---|---|
| Debian/Ubuntu | `build.openvpn.net/debian/openvpn/stable` |
| CentOS/Oracle/Fedora | Fedora Copr `@OpenVPN/openvpn-release-2.6` |
| Amazon Linux/Arch | Distribution packages (no official repo available)
|

## Changes

- Add `installOpenVPNRepo()` function to configure official repos before
package installation
- Remove duplicate package installations between repo setup and install
functions
- Clean up repos and GPG keys during uninstall
- Standardize `log_success` (`[OK]`) for major milestones only


---

Close angristan#1294
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants