Install NetCDF Libraries in Centos8 Docker Container
- Posted by: Barbra Lashbrook - December 11, 2020 Back to CIRA Wiki Home
Topic Catagories: How To, How To: Docker
Tags: Centos8, Docker
FROM centos:8
dnf install -y epel-release dnf-plugins-core && \
dnf --enablerepo=powertools install -y netcdf-fortran netcdf-devel
Notes:
centos 8 brings an updated package manager dnf
: https://linuxhint.com/centos8_package_management_dnf/
yum
still works, but don’t get trapped using deprecated commands. dnf
seems like an easy swap in.
While the netcdf libraries are in the epel-release repository some of the libraries they rely on are within the powertools repo (not default). For containers these can be enabled inline as above.