DESCRIPTION
g.version prints to standard output the GRASS version number,
date, the GRASS GIS copyright (-c flag), and GRASS build information
(-b flag).
NOTES
This program requires no command line arguments; the user simply types
g.version on the command line to see the version number and
date of the GRASS GIS software currently being run by the user.
Information about GRASS GIS
core GIS
Library can be printed by -r flag.
Version numbers of additional libraries
like PROJ, GDAL/OGR
or GEOS are printed
by -e flag.
See also function version()
from Python
Scripting Library.
import grass.script as gcore
print gcore.version()
EXAMPLES
Basic info
g.version
GRASS 8.0.0alpha (2021)
GIS Library info
g.version -r
GRASS 8.0.0alpha (2021)
libgis revision: 1e0c11f52
libgis date: 2021-05-19T09:38:49+00:00
Full info in shell script style
g.version -rge
version=8.0.0alpha
date=2021
revision=d57f40906
build_date=2021-05-23
build_platform=x86_64-pc-linux-gnu
build_off_t_size=8
libgis_revision=1e0c11f52
libgis_date=2021-05-19T09:38:49+00:00
proj=6.3.2
gdal=3.1.4
geos=3.8.1
sqlite=3.34.1
Note: if revision=exported is reported instead of the git hash then the
git program was not available during compilation of GRASS GIS and the
source code did not contain the .git/ subdirectory (requires e.g. to
git clone the GRASS GIS software repository.)
Citing GRASS GIS
The GRASS Development Team has invested significant time and effort
in creating GRASS GIS, please cite it when using it for data analysis.
The GRASS GIS Web site
offers citations in different styles.
AUTHORS
Michael Shapiro,
U.S. Army Construction Engineering
Research Laboratory
Extended info by Martin Landa, Czech Technical University in Prague, Czech Republic