How To Install udunits2 on CentOS 8
Introduction
In this tutorial we learn how to install udunits2
on CentOS 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 CentOS 8. In this tutorial we discuss both methods but you only need to choose one of method to install udunits2.
Install udunits2 on CentOS 8 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
The output should look something like this:
CentOS Linux 8 - AppStream 43 kB/s | 4.3 kB 00:00
CentOS Linux 8 - BaseOS 65 kB/s | 3.9 kB 00:00
CentOS Linux 8 - ContinuousRelease 43 kB/s | 3.0 kB 00:00
CentOS Linux 8 - Extras 23 kB/s | 1.5 kB 00:00
CentOS Linux 8 - FastTrack 40 kB/s | 3.0 kB 00:00
CentOS Linux 8 - HighAvailability 36 kB/s | 3.9 kB 00:00
CentOS Linux 8 - Plus 24 kB/s | 1.5 kB 00:00
CentOS Linux 8 - PowerTools 50 kB/s | 4.3 kB 00:00
Extra Packages for Enterprise Linux Modular 8 - x86_64 13 kB/s | 9.2 kB 00:00
Extra Packages for Enterprise Linux 8 - x86_64 24 kB/s | 8.5 kB 00:00
Metadata cache created.
After updating yum database, We can install udunits2
using dnf
by running the following command:
sudo dnf -y install udunits2
Install udunits2 on CentOS 8 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
The output should look something like this:
CentOS Linux 8 - AppStream 43 kB/s | 4.3 kB 00:00
CentOS Linux 8 - BaseOS 65 kB/s | 3.9 kB 00:00
CentOS Linux 8 - ContinuousRelease 43 kB/s | 3.0 kB 00:00
CentOS Linux 8 - Extras 23 kB/s | 1.5 kB 00:00
CentOS Linux 8 - FastTrack 40 kB/s | 3.0 kB 00:00
CentOS Linux 8 - HighAvailability 36 kB/s | 3.9 kB 00:00
CentOS Linux 8 - Plus 24 kB/s | 1.5 kB 00:00
CentOS Linux 8 - PowerTools 50 kB/s | 4.3 kB 00:00
Extra Packages for Enterprise Linux Modular 8 - x86_64 13 kB/s | 9.2 kB 00:00
Extra Packages for Enterprise Linux 8 - x86_64 24 kB/s | 8.5 kB 00:00
Metadata cache created.
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 CentOS 8
To uninstall only the udunits2
package we can use the following command:
sudo dnf remove udunits2
udunits2 Package Contents on CentOS 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 CentOS 8 using yum and dnf.