How To Install python3-gdal on Rocky Linux 8
Introduction
In this tutorial we learn how to install python3-gdal
on Rocky Linux 8.
What is python3-gdal
The GDAL Python 3 modules provide support to handle multiple GIS file formats.
We can use yum
or dnf
to install python3-gdal
on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install python3-gdal.
Install python3-gdal 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-gdal
using dnf
by running the following command:
sudo dnf -y install python3-gdal
Install python3-gdal 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-gdal
using yum
by running the following command:
sudo yum -y install python3-gdal
How To Uninstall python3-gdal on Rocky Linux 8
To uninstall only the python3-gdal
package we can use the following command:
sudo dnf remove python3-gdal
python3-gdal Package Contents on Rocky Linux 8
/usr/lib/.build-id
/usr/lib/.build-id/1e
/usr/lib/.build-id/1e/be3ca3b0db74d51cd57528a0df9c98eeeae46a
/usr/lib/.build-id/74
/usr/lib/.build-id/74/7d2bdc6443943516e9343ae93916eb8bdb8772
/usr/lib/.build-id/77
/usr/lib/.build-id/77/293f681de49e23df48362ee3ec380fbd22b0a4
/usr/lib/.build-id/8c
/usr/lib/.build-id/8c/2809c02407e81efc447ad1b24d1a03562d40d2
/usr/lib/.build-id/af
/usr/lib/.build-id/af/1d485b0282bbb42ec834b160f4a882694f7361
/usr/lib/.build-id/e0
/usr/lib/.build-id/e0/d6b6fb268577f3fb785d363dd2effde4d1cfd0
/usr/lib64/python3.6/site-packages/GDAL-3.0.4-py3.6.egg-info
/usr/lib64/python3.6/site-packages/GDAL-3.0.4-py3.6.egg-info/PKG-INFO
/usr/lib64/python3.6/site-packages/GDAL-3.0.4-py3.6.egg-info/SOURCES.txt
/usr/lib64/python3.6/site-packages/GDAL-3.0.4-py3.6.egg-info/dependency_links.txt
/usr/lib64/python3.6/site-packages/GDAL-3.0.4-py3.6.egg-info/not-zip-safe
/usr/lib64/python3.6/site-packages/GDAL-3.0.4-py3.6.egg-info/top_level.txt
/usr/lib64/python3.6/site-packages/__pycache__/gdal.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/__pycache__/gdal.cpython-36.pyc
/usr/lib64/python3.6/site-packages/__pycache__/gdalconst.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/__pycache__/gdalconst.cpython-36.pyc
/usr/lib64/python3.6/site-packages/__pycache__/gdalnumeric.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/__pycache__/gdalnumeric.cpython-36.pyc
/usr/lib64/python3.6/site-packages/__pycache__/ogr.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/__pycache__/ogr.cpython-36.pyc
/usr/lib64/python3.6/site-packages/__pycache__/osr.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/__pycache__/osr.cpython-36.pyc
/usr/lib64/python3.6/site-packages/gdal.py
/usr/lib64/python3.6/site-packages/gdalconst.py
/usr/lib64/python3.6/site-packages/gdalnumeric.py
/usr/lib64/python3.6/site-packages/ogr.py
/usr/lib64/python3.6/site-packages/osgeo
/usr/lib64/python3.6/site-packages/osgeo/__init__.py
/usr/lib64/python3.6/site-packages/osgeo/__pycache__
/usr/lib64/python3.6/site-packages/osgeo/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/osgeo/__pycache__/__init__.cpython-36.pyc
/usr/lib64/python3.6/site-packages/osgeo/__pycache__/gdal.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/osgeo/__pycache__/gdal.cpython-36.pyc
/usr/lib64/python3.6/site-packages/osgeo/__pycache__/gdal_array.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/osgeo/__pycache__/gdal_array.cpython-36.pyc
/usr/lib64/python3.6/site-packages/osgeo/__pycache__/gdalconst.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/osgeo/__pycache__/gdalconst.cpython-36.pyc
/usr/lib64/python3.6/site-packages/osgeo/__pycache__/gdalnumeric.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/osgeo/__pycache__/gdalnumeric.cpython-36.pyc
/usr/lib64/python3.6/site-packages/osgeo/__pycache__/gnm.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/osgeo/__pycache__/gnm.cpython-36.pyc
/usr/lib64/python3.6/site-packages/osgeo/__pycache__/ogr.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/osgeo/__pycache__/ogr.cpython-36.pyc
/usr/lib64/python3.6/site-packages/osgeo/__pycache__/osr.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/osgeo/__pycache__/osr.cpython-36.pyc
/usr/lib64/python3.6/site-packages/osgeo/_gdal.cpython-36m-x86_64-linux-gnu.so
/usr/lib64/python3.6/site-packages/osgeo/_gdal_array.cpython-36m-x86_64-linux-gnu.so
/usr/lib64/python3.6/site-packages/osgeo/_gdalconst.cpython-36m-x86_64-linux-gnu.so
/usr/lib64/python3.6/site-packages/osgeo/_gnm.cpython-36m-x86_64-linux-gnu.so
/usr/lib64/python3.6/site-packages/osgeo/_ogr.cpython-36m-x86_64-linux-gnu.so
/usr/lib64/python3.6/site-packages/osgeo/_osr.cpython-36m-x86_64-linux-gnu.so
/usr/lib64/python3.6/site-packages/osgeo/gdal.py
/usr/lib64/python3.6/site-packages/osgeo/gdal_array.py
/usr/lib64/python3.6/site-packages/osgeo/gdalconst.py
/usr/lib64/python3.6/site-packages/osgeo/gdalnumeric.py
/usr/lib64/python3.6/site-packages/osgeo/gnm.py
/usr/lib64/python3.6/site-packages/osgeo/ogr.py
/usr/lib64/python3.6/site-packages/osgeo/osr.py
/usr/lib64/python3.6/site-packages/osr.py
/usr/share/doc/python3-gdal
/usr/share/doc/python3-gdal/README.rst
/usr/share/doc/python3-gdal/samples
/usr/share/doc/python3-gdal/samples/README
/usr/share/doc/python3-gdal/samples/assemblepoly.py
/usr/share/doc/python3-gdal/samples/attachpct.py
/usr/share/doc/python3-gdal/samples/build_jp2_from_xml.py
/usr/share/doc/python3-gdal/samples/classify.py
/usr/share/doc/python3-gdal/samples/crs2crs2grid.py
/usr/share/doc/python3-gdal/samples/densify.py
/usr/share/doc/python3-gdal/samples/dump_jp2.py
/usr/share/doc/python3-gdal/samples/fft.py
/usr/share/doc/python3-gdal/samples/fix_gpkg.py
/usr/share/doc/python3-gdal/samples/gcps2ogr.py
/usr/share/doc/python3-gdal/samples/gdal2grd.py
/usr/share/doc/python3-gdal/samples/gdal_cp.py
/usr/share/doc/python3-gdal/samples/gdal_create_pdf.py
/usr/share/doc/python3-gdal/samples/gdal_ls.py
/usr/share/doc/python3-gdal/samples/gdal_lut.py
/usr/share/doc/python3-gdal/samples/gdal_mkdir.py
/usr/share/doc/python3-gdal/samples/gdal_rm.py
/usr/share/doc/python3-gdal/samples/gdal_rmdir.py
/usr/share/doc/python3-gdal/samples/gdal_vrtmerge.py
/usr/share/doc/python3-gdal/samples/gdal_zip.py
/usr/share/doc/python3-gdal/samples/gdalcopyproj.py
/usr/share/doc/python3-gdal/samples/gdalfilter.py
/usr/share/doc/python3-gdal/samples/gdalinfo.py
/usr/share/doc/python3-gdal/samples/gdalpythonserver.py
/usr/share/doc/python3-gdal/samples/get_soundg.py
/usr/share/doc/python3-gdal/samples/histrep.py
/usr/share/doc/python3-gdal/samples/hsv_merge.py
/usr/share/doc/python3-gdal/samples/jpeg_in_tiff_extract.py
/usr/share/doc/python3-gdal/samples/load2odbc.py
/usr/share/doc/python3-gdal/samples/loslas2ntv2.py
/usr/share/doc/python3-gdal/samples/magphase.py
/usr/share/doc/python3-gdal/samples/make_fuzzer_friendly_archive.py
/usr/share/doc/python3-gdal/samples/ogr2ogr.py
/usr/share/doc/python3-gdal/samples/ogr2vrt.py
/usr/share/doc/python3-gdal/samples/ogr_build_junction_table.py
/usr/share/doc/python3-gdal/samples/ogr_dispatch.py
/usr/share/doc/python3-gdal/samples/ogr_layer_algebra.py
/usr/share/doc/python3-gdal/samples/ogrinfo.py
/usr/share/doc/python3-gdal/samples/ogrupdate.py
/usr/share/doc/python3-gdal/samples/rel.py
/usr/share/doc/python3-gdal/samples/tigerpoly.py
/usr/share/doc/python3-gdal/samples/tolatlong.py
/usr/share/doc/python3-gdal/samples/val_at_coord.py
/usr/share/doc/python3-gdal/samples/val_repl.py
/usr/share/doc/python3-gdal/samples/validate_cloud_optimized_geotiff.py
/usr/share/doc/python3-gdal/samples/validate_gpkg.py
/usr/share/doc/python3-gdal/samples/validate_jp2.py
/usr/share/doc/python3-gdal/samples/vec_tr.py
/usr/share/doc/python3-gdal/samples/vec_tr_spat.py
/usr/share/doc/python3-gdal/samples/wcs_virtds_params.py
References
Summary
In this tutorial we learn how to install python3-gdal
on Rocky Linux 8 using yum and dnf.