hdf2adf command not found

In this troubleshooting guide we learn how to fix hdf2adf command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

hdf2adf: command not found

or when using sudo you get the following error message

sudo: hdf2adf: command not found

Solutions to hdf2adf: command not found

How To Fix hdf2adf: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu hdf2adf is provided by cgns-convert package.

cgns-convert is:

The CFD General Notation System (CGNS) provides a general, portable, and extensible standard for the storage and retrieval of computational fluid dynamics (CFD) analysis data. It consists of a collection of conventions, and free and open software implementing those conventions. It is self-descriptive, machine-independent, well-documented, and administered by an international steering committee. It is also an American Institute of Aeronautics and Astronautics (AIAA) Recommended Practice.

This package contains the adf2hdf, hdf2adf tools.

To fix this problem, we can install more using the command below.

sudo apt-get -y install cgns-convert

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install cgns-convert.

sudo apt -y install cgns-convert

Or if you have aptitude installed you can use the following command.

sudo aptitude install cgns-convert

Summary

In this tutorial we learn how to fix hdf2adf command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.