How To Install libuuid on CentOS 7

In this tutorial we learn how to install libuuid on CentOS 7. libuuid is Universally unique ID library

Introduction

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

What is libuuid

This is the universally unique ID library, part of util-linux. The libuuid library generates and parses 128-bit universally unique id’s (UUID’s). A UUID is an identifier that is unique across both space and time, with respect to the space of all UUIDs. A UUID can be used for multiple purposes, from tagging objects with an extremely short lifetime, to reliably identifying very persistent objects across a network. See also the “uuid” package, which is a separate implementation.

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

Install libuuid on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

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

sudo yum -y install libuuid

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

sudo dnf -y install libuuid

How To Uninstall libuuid on CentOS 7

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

sudo dnf remove libuuid

References

Summary

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