How To Install udunits2 on CentOS 7
Introduction
In this tutorial we learn how to install udunits2
on CentOS 7.
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 CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install udunits2.
Install udunits2 on CentOS 7 Using yum
Update yum database with yum
using the following command.
After updating yum database, We can install udunits2
using yum
by running the following command:
Install udunits2 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.
After updating yum database, We can install udunits2
using dnf
by running the following command:
How To Uninstall udunits2 on CentOS 7
To uninstall only the udunits2
package we can use the following command:
References
Summary
In this tutorial we learn how to install udunits2
on CentOS 7 using yum
and dnf
.