Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

check library version netcdf linux

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

like image 910
Herman Toothrot Avatar asked Aug 20 '15 12:08

Herman Toothrot


2 Answers

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
like image 150
jhamman Avatar answered Sep 18 '22 16:09

jhamman


Assuming the package is installed, you can use the following command:

dpkg-query --list netcdf

Personally I don't have netcdf installed, but you will have an output like this:

$ dpkg-query --list netbase
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name           Version      Architecture Description
+++-==============-============-============-=================================
ii  netbase        5.3          all          Basic TCP/IP networking system
like image 30
Alejandro López Avatar answered Sep 22 '22 16:09

Alejandro López