How To Install websocketpp-devel on CentOS 7

In this tutorial we learn how to install websocketpp-devel on CentOS 7. websocketpp-devel is C++ WebSocket Protocol Library

Introduction

In this tutorial we learn how to install websocketpp-devel on CentOS 7.

What is websocketpp-devel

WebSocket++ is an open source (BSD license) header only C++ library that implements RFC6455 The WebSocket Protocol. It allows integrating WebSocket client and server functionality into C++ programs. It uses interchangeable network transport modules including one based on C++ iostreams and one based on Boost Asio.

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

Install websocketpp-devel on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

After updating yum database, We can install websocketpp-devel using yum by running the following command:

sudo yum -y install websocketpp-devel

Install websocketpp-devel 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 websocketpp-devel using dnf by running the following command:

sudo dnf -y install websocketpp-devel

How To Uninstall websocketpp-devel on CentOS 7

To uninstall only the websocketpp-devel package we can use the following command:

sudo dnf remove websocketpp-devel

References

Summary

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