How To Install python3-pygrib on Rocky Linux 8

In this tutorial we learn how to install python3-pygrib on Rocky Linux 8. python3-pygrib is Python module for reading and writing GRIB (editions 1 and 2) files

Introduction

In this tutorial we learn how to install python3-pygrib on Rocky Linux 8.

What is python3-pygrib

Cython wrapper to provide python interfaces to the grib library. GRIB is the the World Meteorological Organization (WMO) standard for distributing gridded data. This module contains python interfaces for reading and writing GRIB data using the ECMWF GRIB API C library, and the NCEP GRIB2 C library, as well as command-line utilities for listing and re-packing GRIB files.

We can use yum or dnf to install python3-pygrib on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install python3-pygrib.

Install python3-pygrib on Rocky Linux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install python3-pygrib using dnf by running the following command:

sudo dnf -y install python3-pygrib

Install python3-pygrib on Rocky Linux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install python3-pygrib using yum by running the following command:

sudo yum -y install python3-pygrib

How To Uninstall python3-pygrib on Rocky Linux 8

To uninstall only the python3-pygrib package we can use the following command:

sudo dnf remove python3-pygrib

python3-pygrib Package Contents on Rocky Linux 8

/usr/bin/cnvgrib1to2
/usr/bin/cnvgrib2to1
/usr/bin/grib_list
/usr/bin/grib_repack
/usr/lib/.build-id
/usr/lib/.build-id/05
/usr/lib/.build-id/05/3126d28832109e05e8227565be93c023502dff
/usr/lib/.build-id/9a
/usr/lib/.build-id/9a/2b472d8feb01b1e24935fba9716916a1b69745
/usr/lib/.build-id/e5
/usr/lib/.build-id/e5/9e107b11a7a4e5b20ac2475939e958704f9b5b
/usr/lib64/python3.6/site-packages/__pycache__/ncepgrib2.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/__pycache__/ncepgrib2.cpython-36.pyc
/usr/lib64/python3.6/site-packages/g2clib.cpython-36m-x86_64-linux-gnu.so
/usr/lib64/python3.6/site-packages/ncepgrib2.py
/usr/lib64/python3.6/site-packages/pygrib-2.0.4-py3.6.egg-info
/usr/lib64/python3.6/site-packages/pygrib.cpython-36m-x86_64-linux-gnu.so
/usr/lib64/python3.6/site-packages/redtoreg.cpython-36m-x86_64-linux-gnu.so
/usr/share/doc/python3-pygrib
/usr/share/doc/python3-pygrib/COPYING
/usr/share/doc/python3-pygrib/PKG-INFO
/usr/share/doc/python3-pygrib/README.md
/usr/share/doc/python3-pygrib/docs
/usr/share/doc/python3-pygrib/docs/api-objects.txt
/usr/share/doc/python3-pygrib/docs/class-tree.html
/usr/share/doc/python3-pygrib/docs/crarr.png
/usr/share/doc/python3-pygrib/docs/epydoc.css
/usr/share/doc/python3-pygrib/docs/epydoc.js
/usr/share/doc/python3-pygrib/docs/help.html
/usr/share/doc/python3-pygrib/docs/identifier-index.html
/usr/share/doc/python3-pygrib/docs/index.html
/usr/share/doc/python3-pygrib/docs/module-tree.html
/usr/share/doc/python3-pygrib/docs/pygrib-module.html
/usr/share/doc/python3-pygrib/docs/pygrib.gribmessage-class.html
/usr/share/doc/python3-pygrib/docs/pygrib.index-class.html
/usr/share/doc/python3-pygrib/docs/pygrib.open-class.html
/usr/share/doc/python3-pygrib/docs/redirect.html
/usr/share/doc/python3-pygrib/ncepgrib2_docs
/usr/share/doc/python3-pygrib/ncepgrib2_docs/api-objects.txt
/usr/share/doc/python3-pygrib/ncepgrib2_docs/class-tree.html
/usr/share/doc/python3-pygrib/ncepgrib2_docs/crarr.png
/usr/share/doc/python3-pygrib/ncepgrib2_docs/epydoc.css
/usr/share/doc/python3-pygrib/ncepgrib2_docs/epydoc.js
/usr/share/doc/python3-pygrib/ncepgrib2_docs/help.html
/usr/share/doc/python3-pygrib/ncepgrib2_docs/identifier-index.html
/usr/share/doc/python3-pygrib/ncepgrib2_docs/index.html
/usr/share/doc/python3-pygrib/ncepgrib2_docs/module-tree.html
/usr/share/doc/python3-pygrib/ncepgrib2_docs/ncepgrib2-module.html
/usr/share/doc/python3-pygrib/ncepgrib2_docs/ncepgrib2-pysrc.html
/usr/share/doc/python3-pygrib/ncepgrib2_docs/ncepgrib2.Grib2Encode-class.html
/usr/share/doc/python3-pygrib/ncepgrib2_docs/ncepgrib2.Grib2Message-class.html
/usr/share/doc/python3-pygrib/ncepgrib2_docs/redirect.html
/usr/share/man/man1/cnvgrib1to2.1.gz
/usr/share/man/man1/cnvgrib2to1.1.gz
/usr/share/man/man1/grib_list.1.gz
/usr/share/man/man1/grib_repack.1.gz

References

Summary

In this tutorial we learn how to install python3-pygrib on Rocky Linux 8 using yum and dnf.