Unable to install openvpn

Using Rocky 8.6 and I am unable to install openvpn. I get “Error: Unable to find a match: openvpn”

My update sources are:
Rocky Linux 8 - AppStream
Rocky Linux 8 - BaseOS
Rocky Linux 8 - Extras
Rocky Linux 8 - Plus
Rocky Linux 8 - PowerTools

wb

It’s available, but you are missing one more repository:

[root@rocky ~]# dnf search openvpn
Last metadata expiration check: 0:00:09 ago on Sun 17 Jul 2022 18:50:30 CEST.
======================================== Name Exactly Matched: openvpn =========================================
openvpn.x86_64 : A full-featured SSL VPN solution
======================================= Name & Summary Matched: openvpn ========================================
NetworkManager-openvpn.x86_64 : NetworkManager VPN plugin for OpenVPN
NetworkManager-openvpn-gnome.x86_64 : NetworkManager VPN plugin for OpenVPN - GNOME files
openvpn-auth-ldap.x86_64 : OpenVPN plugin for LDAP authentication
openvpn-devel.x86_64 : Development headers and examples for OpenVPN plug-ins
plasma-nm-openvpn.x86_64 : OpenVPN support for plasma-nm

[root@rocky ~]# dnf info openvpn
Last metadata expiration check: 0:00:11 ago on Sun 17 Jul 2022 18:50:30 CEST.
Available Packages
Name         : openvpn
Version      : 2.4.12
Release      : 1.el8
Architecture : x86_64
Size         : 545 k
Source       : openvpn-2.4.12-1.el8.src.rpm
Repository   : epel
Summary      : A full-featured SSL VPN solution
URL          : https://community.openvpn.net/
License      : GPLv2
Description  : OpenVPN is a robust and highly flexible tunneling application that uses all
             : of the encryption, authentication, and certification features of the
             : OpenSSL library to securely tunnel IP networks over a single UDP or TCP
             : port.  It can use the Marcus Franz Xaver Johannes Oberhumers LZO library
             : for compression.

so, you need epel:

dnf install epel-release
dnf install openvpn
1 Like

Absolutely, was about to share the same information. Thanks iwalker.

And ,may I ask if it’s possible to update Rocky 8.6 directly to Rocky Linux 9 via package manager ( dnf or yum) . Currently running on Rocky Linux 8.6. on my desktop machine .

@Jil Upgrades not supported from 8 → 9 - recommended is clean install and restore. There is talk about something called elevate and maybe some sort of unofficial upgrade process will appear in the future. But officially, it’s clean install time.

1 Like

Thank you sir @iwalker , this information is Very helpful.

1 Like

I apparently have epel-release…

dnf install epel-release
Last metadata expiration check: 0:23:43 ago on Sun 17 Jul 2022 11:33:12 AM CDT.
Package epel-release-8-13.el8.noarch is already installed.
Dependencies resolved.
Nothing to do.
Complete!

Then…
dnf install openvpn
Last metadata expiration check: 0:24:15 ago on Sun 17 Jul 2022 11:33:12 AM CDT.
No match for argument: openvpn
Error: Unable to find a match: openvpn

I suggest you update your system, your epel-release is not up-to-date (8.16 vs your 8.13):

[root@rocky ~]# dnf list installed epel-release
Installed Packages
epel-release.noarch                                          8-16.el8                                          @epel

so:

dnf clean all
dnf update
dnf install openvpn

and then use the dnf search command that I used before to find the list of all openvpn packages available on your system.

I have ran these commands right now, so if you are not seeing these packages, then something is wrong with your system.

2 Likes

openvpn still doesn’t install and I still show 8.13, not 8.16 for epel-release.

I uninstalled epel-release and reinstalled and ver. 8.13 was installed again.

Success! I just now got openvpn installed.
Thanks for all the help. Something was messed up with the epel-release repro

wb

Cool, i would have suggested you check on the status of your SElinux.

1 Like