How To Install munge on CentOS 7

In this tutorial we learn how to install munge on CentOS 7. munge is Enables uid & gid authentication across a host cluster

Introduction

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

What is munge

MUNGE (MUNGE Uid ‘N’ Gid Emporium) is an authentication service for creating and validating credentials. It is designed to be highly scalable for use in an HPC cluster environment. It allows a process to authenticate the UID and GID of another local or remote process within a group of hosts having common users and groups. These hosts form a security realm that is defined by a shared cryptographic key. Clients within this security realm can create and validate credentials without the use of root privileges, reserved ports, or platform-specific methods.

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

Install munge on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

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

sudo yum -y install munge

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

sudo dnf -y install munge

How To Uninstall munge on CentOS 7

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

sudo dnf remove munge

References

Summary

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