How To Install openiked on Fedora 34

openiked is A free Internet Key Exchange (IKEv2) implementation

Introduction

In this tutorial we learn how to install openiked on Fedora 34.

What is openiked

OpenIKED is a free, permissively licensed Internet Key Exchange (IKEv2) implementation, developed as part of the OpenBSD project. It is intended to be a lean, secure and inter-operable daemon that allows for easy setup and management of IPsec VPNs.

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

Install openiked on Fedora 34 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

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

sudo dnf -y install openiked

Install openiked on Fedora 34 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

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

sudo yum -y install openiked

How To Uninstall openiked on Fedora 34

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

sudo dnf remove openiked

openiked Package Contents on Fedora 34

/etc/iked
/etc/iked.conf
/etc/iked/ca
/etc/iked/certs
/etc/iked/crls
/etc/iked/private
/etc/iked/pubkeys
/etc/iked/pubkeys/fqdn
/etc/iked/pubkeys/ipv4
/etc/iked/pubkeys/ipv6
/etc/iked/pubkeys/ufqdn
/usr/lib/.build-id
/usr/lib/.build-id/34
/usr/lib/.build-id/34/df1e89955825496f696a29de737562ac488e7a
/usr/lib/.build-id/68
/usr/lib/.build-id/68/2804987bcb1dc6a063e7bab9f0d9f968e62b0a
/usr/lib/systemd/system/openiked-keygen.service
/usr/lib/systemd/system/openiked-keygen.target
/usr/lib/systemd/system/openiked.service
/usr/lib/sysusers.d/openiked.conf
/usr/libexec/openiked
/usr/libexec/openiked/openiked-keygen
/usr/sbin/ikectl
/usr/sbin/iked
/usr/share/licenses/openiked
/usr/share/licenses/openiked/LICENSE
/usr/share/man/man5/iked.conf.5.gz
/usr/share/man/man8/ikectl.8.gz
/usr/share/man/man8/iked.8.gz

References

Summary

In this tutorial we learn how to install openiked on Fedora 34 using yum and dnf.