How To Install udunits2 on Rocky Linux 8

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

Introduction

In this tutorial we learn how to install udunits2 on Rocky Linux 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 Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install udunits2.

Install udunits2 on Rocky Linux 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 Rocky Linux 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 Rocky Linux 8

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

sudo dnf remove udunits2

udunits2 Package Contents on Rocky Linux 8

/usr/bin/udunits2
/usr/lib/.build-id
/usr/lib/.build-id/0f
/usr/lib/.build-id/0f/ef7d58b2ee5490c9c42430f7a21c05d47569f1
/usr/lib/.build-id/e2
/usr/lib/.build-id/e2/1de1f359ba3e509889b2019a8213df267b9cc2
/usr/lib64/libudunits2.so.0
/usr/lib64/libudunits2.so.0.1.0
/usr/share/doc/udunits2
/usr/share/doc/udunits2/ANNOUNCEMENT
/usr/share/doc/udunits2/CHANGE_LOG
/usr/share/doc/udunits2/README
/usr/share/doc/udunits2/udunits2-accepted.xml
/usr/share/doc/udunits2/udunits2-base.xml
/usr/share/doc/udunits2/udunits2-common.xml
/usr/share/doc/udunits2/udunits2-derived.xml
/usr/share/doc/udunits2/udunits2-prefixes.xml
/usr/share/doc/udunits2/udunits2.html
/usr/share/doc/udunits2/udunits2.pdf
/usr/share/doc/udunits2/udunits2.xml
/usr/share/doc/udunits2/udunits2lib.html
/usr/share/doc/udunits2/udunits2lib.pdf
/usr/share/doc/udunits2/udunits2prog.html
/usr/share/doc/udunits2/udunits2prog.pdf
/usr/share/info/udunits2.info.gz
/usr/share/info/udunits2lib.info.gz
/usr/share/info/udunits2prog.info.gz
/usr/share/licenses/udunits2
/usr/share/licenses/udunits2/COPYRIGHT
/usr/share/udunits
/usr/share/udunits/udunits2-accepted.xml
/usr/share/udunits/udunits2-base.xml
/usr/share/udunits/udunits2-common.xml
/usr/share/udunits/udunits2-derived.xml
/usr/share/udunits/udunits2-prefixes.xml
/usr/share/udunits/udunits2.xml

References

Summary

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