How To Install hdf5 on CentOS 8

hdf5 is A general purpose library and file format for storing scientific data

Introduction

In this tutorial we learn how to install hdf5 on CentOS 8.

What is hdf5

HDF5 is a general purpose library and file format for storing scientific data. HDF5 can store two primary objects essentially a multidimensional array of data elements, and a group is a structure for organizing objects in an HDF5 file. Using these two basic objects, one can create and store almost any kind of scientific data structure, such as images, arrays of vectors, and structured and unstructured grids. You can also mix and match them in HDF5 files according to your needs.

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

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

sudo dnf -y install hdf5

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

sudo yum -y install hdf5

How To Uninstall hdf5 on CentOS 8

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

sudo dnf remove hdf5

hdf5 Package Contents on CentOS 8

/usr/bin/gif2h5
/usr/bin/h52gif
/usr/bin/h5clear
/usr/bin/h5copy
/usr/bin/h5debug
/usr/bin/h5diff
/usr/bin/h5dump
/usr/bin/h5format_convert
/usr/bin/h5import
/usr/bin/h5jam
/usr/bin/h5ls
/usr/bin/h5mkgrp
/usr/bin/h5perf_serial
/usr/bin/h5repack
/usr/bin/h5repart
/usr/bin/h5stat
/usr/bin/h5unjam
/usr/bin/h5watch
/usr/lib/.build-id
/usr/lib/.build-id/16
/usr/lib/.build-id/16/b13c4effc8a2afe76572fb7cac3219fdbe27b9
/usr/lib/.build-id/2a
/usr/lib/.build-id/2a/733780d83cbbded14832d3cc68fe27b8e1f16b
/usr/lib/.build-id/31
/usr/lib/.build-id/31/9e7d66764010ddeab3f5f9350c13ec63ce3a7c
/usr/lib/.build-id/42
/usr/lib/.build-id/42/45faccda2eb1cd7626a9bf55bcbfd78ecc8513
/usr/lib/.build-id/44
/usr/lib/.build-id/44/2e334aac0718160cbcbdc855510db805fd15e0
/usr/lib/.build-id/59
/usr/lib/.build-id/59/14a46f5ff34458473f4c6b5381b35d7f3526e9
/usr/lib/.build-id/5b
/usr/lib/.build-id/5b/3de545cadd9924289f388f94b7e358eba75ed4
/usr/lib/.build-id/79
/usr/lib/.build-id/79/d39b32400087eb048de392d1061f5147d3cfe1
/usr/lib/.build-id/81
/usr/lib/.build-id/81/c6b1d09f2fed153b1b7ee28e87546b01125de0
/usr/lib/.build-id/89
/usr/lib/.build-id/89/fbdd5166b52c968cf38295bf71b98bf2489e1e
/usr/lib/.build-id/8b
/usr/lib/.build-id/8b/19a542dc4759473914d945c70a3026ae6ae35c
/usr/lib/.build-id/8b/39f15b8b9d404ec4760131693b63e26245bef7
/usr/lib/.build-id/93
/usr/lib/.build-id/93/d176a5ff64c62cb1d440ee15baddfe069bc205
/usr/lib/.build-id/96
/usr/lib/.build-id/96/5975df19867cbc796ffab03b757bdd20512030
/usr/lib/.build-id/97
/usr/lib/.build-id/97/dc8fefb19b018fc59b939ee9a7ba1059601541
/usr/lib/.build-id/98
/usr/lib/.build-id/98/d06ca6e42876940896e68358d0dfc11b8a2d87
/usr/lib/.build-id/9f
/usr/lib/.build-id/9f/e7831ddb1f4fbaa15c8c72a6121f8e71489b16
/usr/lib/.build-id/a7
/usr/lib/.build-id/a7/da58a4ba1f21a58da4e8e96c627d5a88f9bffc
/usr/lib/.build-id/af
/usr/lib/.build-id/af/e663b8ca1a795db3e0d36c222b21d8dbc94802
/usr/lib/.build-id/b5
/usr/lib/.build-id/b5/d9f667ba1fcd2105954f7744a3601da7bc02f4
/usr/lib/.build-id/dd
/usr/lib/.build-id/dd/c7a4945ed7afcb9fc7409eb3e76d1a0786ebbf
/usr/lib/.build-id/e4
/usr/lib/.build-id/e4/49415194d8269b35469d49967f16734ab5b8ee
/usr/lib/.build-id/eb
/usr/lib/.build-id/eb/b59dcfb288e21b7da661785357b2cda0e47d91
/usr/lib/.build-id/fa
/usr/lib/.build-id/fa/bf513f99a70ceb57fdcb3e8cd43af67d3437f4
/usr/lib64/libhdf5.so.103
/usr/lib64/libhdf5.so.103.1.0
/usr/lib64/libhdf5_cpp.so.103
/usr/lib64/libhdf5_cpp.so.103.1.0
/usr/lib64/libhdf5_fortran.so.102
/usr/lib64/libhdf5_fortran.so.102.0.0
/usr/lib64/libhdf5_hl.so.100
/usr/lib64/libhdf5_hl.so.100.1.2
/usr/lib64/libhdf5_hl_cpp.so.100
/usr/lib64/libhdf5_hl_cpp.so.100.1.3
/usr/lib64/libhdf5hl_fortran.so.100
/usr/lib64/libhdf5hl_fortran.so.100.0.4
/usr/share/doc/hdf5
/usr/share/doc/hdf5/HISTORY-1_0-1_8_0_rc3.txt
/usr/share/doc/hdf5/HISTORY-1_10.txt
/usr/share/doc/hdf5/HISTORY-1_8.txt
/usr/share/doc/hdf5/HISTORY-1_8_0-1_10_0.txt
/usr/share/doc/hdf5/MANIFEST
/usr/share/doc/hdf5/README.txt
/usr/share/doc/hdf5/RELEASE.txt
/usr/share/licenses/hdf5
/usr/share/licenses/hdf5/COPYING
/usr/share/man/man1/gif2h5.1.gz
/usr/share/man/man1/h52gif.1.gz
/usr/share/man/man1/h5copy.1.gz
/usr/share/man/man1/h5diff.1.gz
/usr/share/man/man1/h5dump.1.gz
/usr/share/man/man1/h5import.1.gz
/usr/share/man/man1/h5jam.1.gz
/usr/share/man/man1/h5ls.1.gz
/usr/share/man/man1/h5mkgrp.1.gz
/usr/share/man/man1/h5perf_serial.1.gz
/usr/share/man/man1/h5repack.1.gz
/usr/share/man/man1/h5repart.1.gz
/usr/share/man/man1/h5stat.1.gz
/usr/share/man/man1/h5unjam.1.gz

References

Summary

In this tutorial we learn how to install hdf5 on CentOS 8 using yum and dnf.