How To Install openvpn on Fedora 36

In this tutorial we learn how to install openvpn in Fedora 36. openvpn is A full-featured TLS VPN solution

Introduction

In this tutorial we learn how to install openvpn on Fedora 36.

What is openvpn

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.

We can use yum or dnf to install openvpn on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install openvpn.

Install openvpn on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install openvpn using dnf by running the following command:

sudo dnf -y install openvpn

Install openvpn on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install openvpn using yum by running the following command:

sudo yum -y install openvpn

How To Uninstall openvpn on Fedora 36

To uninstall only the openvpn package we can use the following command:

sudo dnf remove openvpn

openvpn Package Contents on Fedora 36

/etc/openvpn
/etc/openvpn/client
/etc/openvpn/server
/run/openvpn-client
/run/openvpn-server
/usr/lib/.build-id
/usr/lib/.build-id/3a
/usr/lib/.build-id/3a/80332455fad2d9302132ee8bc982554e3a5f3e
/usr/lib/.build-id/8e
/usr/lib/.build-id/8e/a1e1634754bd61259d11a00ac0a6cc25291704
/usr/lib/.build-id/a1
/usr/lib/.build-id/a1/9a9cc79cac32fbaf1bfafc1dec06d84b43a959
/usr/lib/systemd/system/[email protected]
/usr/lib/systemd/system/[email protected]
/usr/lib/tmpfiles.d/openvpn.conf
/usr/lib64/openvpn
/usr/lib64/openvpn/plugins
/usr/lib64/openvpn/plugins/openvpn-plugin-auth-pam.so
/usr/lib64/openvpn/plugins/openvpn-plugin-down-root.so
/usr/sbin/openvpn
/usr/share/doc/openvpn
/usr/share/doc/openvpn/AUTHORS
/usr/share/doc/openvpn/COPYING
/usr/share/doc/openvpn/COPYRIGHT.GPL
/usr/share/doc/openvpn/ChangeLog
/usr/share/doc/openvpn/Changes.rst
/usr/share/doc/openvpn/README
/usr/share/doc/openvpn/README.auth-pam
/usr/share/doc/openvpn/README.down-root
/usr/share/doc/openvpn/README.systemd
/usr/share/doc/openvpn/contrib
/usr/share/doc/openvpn/contrib/OCSP_check
/usr/share/doc/openvpn/contrib/OCSP_check/OCSP_check.sh
/usr/share/doc/openvpn/contrib/README
/usr/share/doc/openvpn/contrib/openvpn-fwmarkroute-1.00
/usr/share/doc/openvpn/contrib/openvpn-fwmarkroute-1.00/README
/usr/share/doc/openvpn/contrib/openvpn-fwmarkroute-1.00/fwmarkroute.down
/usr/share/doc/openvpn/contrib/openvpn-fwmarkroute-1.00/fwmarkroute.up
/usr/share/doc/openvpn/contrib/pull-resolv-conf
/usr/share/doc/openvpn/contrib/pull-resolv-conf/client.down
/usr/share/doc/openvpn/contrib/pull-resolv-conf/client.up
/usr/share/doc/openvpn/contrib/vcpkg-ports
/usr/share/doc/openvpn/contrib/vcpkg-ports/openssl
/usr/share/doc/openvpn/contrib/vcpkg-ports/openssl/install-pc-files.cmake
/usr/share/doc/openvpn/contrib/vcpkg-ports/openssl/openssl.pc.in
/usr/share/doc/openvpn/contrib/vcpkg-ports/openssl/portfile.cmake
/usr/share/doc/openvpn/contrib/vcpkg-ports/openssl/usage
/usr/share/doc/openvpn/contrib/vcpkg-ports/openssl/vcpkg-cmake-wrapper.cmake.in
/usr/share/doc/openvpn/contrib/vcpkg-ports/openssl/vcpkg.json
/usr/share/doc/openvpn/contrib/vcpkg-ports/openssl/windows
/usr/share/doc/openvpn/contrib/vcpkg-ports/openssl/windows/portfile.cmake
/usr/share/doc/openvpn/contrib/vcpkg-ports/pkcs11-helper
/usr/share/doc/openvpn/contrib/vcpkg-ports/pkcs11-helper/0001-nmake-compatibility-with-vcpkg-nmake.patch
/usr/share/doc/openvpn/contrib/vcpkg-ports/pkcs11-helper/0002-pkcs11.h-rename-interface-parameter.patch
/usr/share/doc/openvpn/contrib/vcpkg-ports/pkcs11-helper/CONTROL
/usr/share/doc/openvpn/contrib/vcpkg-ports/pkcs11-helper/pkcs11-helper-001-RFC7512.patch
/usr/share/doc/openvpn/contrib/vcpkg-ports/pkcs11-helper/portfile.cmake
/usr/share/doc/openvpn/contrib/vcpkg-triplets
/usr/share/doc/openvpn/contrib/vcpkg-triplets/arm64-windows-ovpn.cmake
/usr/share/doc/openvpn/contrib/vcpkg-triplets/x64-windows-ovpn.cmake
/usr/share/doc/openvpn/contrib/vcpkg-triplets/x86-windows-ovpn.cmake
/usr/share/doc/openvpn/gui-notes.txt
/usr/share/doc/openvpn/management-notes.txt
/usr/share/doc/openvpn/openvpn-examples.5.html
/usr/share/doc/openvpn/openvpn.8.html
/usr/share/doc/openvpn/sample
/usr/share/doc/openvpn/sample/sample-config-files
/usr/share/doc/openvpn/sample/sample-config-files/README
/usr/share/doc/openvpn/sample/sample-config-files/client.conf
/usr/share/doc/openvpn/sample/sample-config-files/firewall.sh
/usr/share/doc/openvpn/sample/sample-config-files/home.up
/usr/share/doc/openvpn/sample/sample-config-files/loopback-client
/usr/share/doc/openvpn/sample/sample-config-files/loopback-server
/usr/share/doc/openvpn/sample/sample-config-files/office.up
/usr/share/doc/openvpn/sample/sample-config-files/openvpn-shutdown.sh
/usr/share/doc/openvpn/sample/sample-config-files/openvpn-startup.sh
/usr/share/doc/openvpn/sample/sample-config-files/roadwarrior-client.conf
/usr/share/doc/openvpn/sample/sample-config-files/roadwarrior-server.conf
/usr/share/doc/openvpn/sample/sample-config-files/server.conf
/usr/share/doc/openvpn/sample/sample-config-files/tls-home.conf
/usr/share/doc/openvpn/sample/sample-config-files/tls-office.conf
/usr/share/doc/openvpn/sample/sample-config-files/xinetd-client-config
/usr/share/doc/openvpn/sample/sample-config-files/xinetd-server-config
/usr/share/doc/openvpn/sample/sample-scripts
/usr/share/doc/openvpn/sample/sample-scripts/auth-pam.pl
/usr/share/doc/openvpn/sample/sample-scripts/bridge-start
/usr/share/doc/openvpn/sample/sample-scripts/bridge-stop
/usr/share/doc/openvpn/sample/sample-scripts/ucn.pl
/usr/share/doc/openvpn/sample/sample-scripts/verify-cn
/usr/share/doc/openvpn/sample/sample-windows
/usr/share/doc/openvpn/sample/sample-windows/sample.ovpn
/usr/share/man/man5/openvpn-examples.5.gz
/usr/share/man/man8/openvpn.8.gz
/var/lib/openvpn

References

Summary

In this tutorial we learn how to install openvpn on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).