How To Install udunits2 on AlmaLinux 8

In this tutorial we learn how to install udunits2 in AlmaLinux 8. udunits2 is A library for manipulating units of physical quantities

Introduction

In this tutorial we learn how to install udunits2 on AlmaLinux 8.

What is udunits2

The Unidata units utility, udunits2, supports conversion of unit specifications between formatted and binary forms, arithmetic manipulation of unit specifications, and conversion of values between compatible scales of measurement. A unit is the amount by which a physical quantity is measured. For example Physical Quantity Possible Unit _________________ _____________ time weeks distance centimeters power watts This utility works interactively and has two modes. In one mode, both an input and output unit specification are given, causing the utility to print the conversion between them. In the other mode, only an input unit specification is given. This causes the utility to print the definition – in standard units – of the input unit.

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

Install udunits2 on AlmaLinux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

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

sudo dnf -y install udunits2

Install udunits2 on AlmaLinux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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

sudo yum -y install udunits2

How To Uninstall udunits2 on AlmaLinux 8

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

sudo dnf remove udunits2

References

Summary

In this tutorial we learn how to install udunits2 on AlmaLinux 8 using yum and dnf.