How To Install nanomsg on CentOS 7

In this tutorial we learn how to install nanomsg on CentOS 7. nanomsg is Socket library that provides several common communication patterns

Introduction

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

What is nanomsg

The nanomsg library is a simple high-performance implementation of several “scalability protocols”. These scalability protocols are light-weight messaging protocols which can be used to solve a number of very common messaging patterns, such as request/reply, publish/subscribe, surveyor/respondent, and so forth. These protocols can run over a variety of transports such as TCP, UNIX sockets, and even WebSocket.

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

Install nanomsg on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

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

sudo yum -y install nanomsg

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

sudo dnf -y install nanomsg

How To Uninstall nanomsg on CentOS 7

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

sudo dnf remove nanomsg

References

Summary

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