How To Install unique on CentOS 7

In this tutorial we learn how to install unique on CentOS 7. unique is Single instance support for applications

Introduction

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

What is unique

Unique is a library for writing single instance applications, that is applications that are run once and every further call to the same binary either exits immediately or sends a command to the running instance.

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

Install unique on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

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

sudo yum -y install unique

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

sudo dnf -y install unique

How To Uninstall unique on CentOS 7

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

sudo dnf remove unique

References

Summary

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