grib_get_data command not found

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

Introduction

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

grib_get_data: command not found

or when using sudo you get the following error message

sudo: grib_get_data: command not found

Solutions to grib_get_data: command not found

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

In Ubuntu grib_get_data is provided by libeccodes-tools package.

libeccodes-tools is:

ecCodes is the ECMWF encoding/decoding software for GRIB and BUFR.

This is a useful set of command line tools to give quick access to grib messages.

ECMWF is the European Centre for Medium-Range Weather Forecasts.

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

sudo apt-get -y install libeccodes-tools

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

You can also use apt command to install libeccodes-tools.

sudo apt -y install libeccodes-tools

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

sudo aptitude install libeccodes-tools

Summary

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