How To Install racoon2 on CentOS 7

In this tutorial we learn how to install racoon2 on CentOS 7. racoon2 is An implementation of key management system for IPsec

Introduction

In this tutorial we learn how to install racoon2 on CentOS 7.

What is racoon2

The Racoon2 project is a joint effort which provides an implementation of key management system for IPsec. The implementation is called Racoon2, a successor of Racoon, which was developed by the KAME project. It supports IKEv1, IKEv2, and KINK protocols. It works on FreeBSD, NetBSD, Linux, and Mac OS X.

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

Install racoon2 on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

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

sudo yum -y install racoon2

Install racoon2 on CentOS 7 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

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

sudo dnf -y install racoon2

How To Uninstall racoon2 on CentOS 7

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

sudo dnf remove racoon2

References

Summary

In this tutorial we learn how to install racoon2 on CentOS 7 using yum and dnf.