How To Install activemq-cpp on CentOS 7

In this tutorial we learn how to install activemq-cpp on CentOS 7. activemq-cpp is C++ implementation of JMS-like messaging client

Introduction

In this tutorial we learn how to install activemq-cpp on CentOS 7.

What is activemq-cpp

activemq-cpp is a JMS-like API for C++ for interfacing with Message Brokers such as Apache ActiveMQ. C++ messaging service helps to make your C++ client code much neater and easier to follow. To get a better feel for CMS try the API Reference. ActiveMQ-CPP is a client only library, a message broker such as Apache ActiveMQ is still needed for your clients to communicate.

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

Install activemq-cpp on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

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

sudo yum -y install activemq-cpp

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

sudo dnf -y install activemq-cpp

How To Uninstall activemq-cpp on CentOS 7

To uninstall only the activemq-cpp package we can use the following command:

sudo dnf remove activemq-cpp

References

Summary

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