check library version netcdf linux

Herman Toothrot picture Herman Toothrot · Aug 20, 2015 · Viewed 11.7k times · Source

how do I determine which version of the netcdf library is installed in my system? Is there a command line? I tried to search "netcdf" and I find a bunch of files but I can't determine the version number. Is there a command to check the version of anything installed?

I am on ubuntu

Answer

jhamman picture jhamman · Aug 26, 2015

netCDF provides the nc-config command line tool for this purpose.

To print the version.

nc-config --version

To print more information on the netCDF build you have:

nc-config --all