DOKK / manpages / debian 10 / grass-doc / g.version.1grass.en
g.version(1grass) Grass User's Manual g.version(1grass)

g.version - Displays GRASS GIS version info.
Optionally also prints build or copyright information.

general, support, citing, copyright, version, license

g.version
g.version --help
g.version [-cxbreg] [--help] [--verbose] [--quiet] [--ui]


Print also the copyright message

Print also the citation options

Print also the build information

Print also the GIS library revision number and date

Print also extended info for additional libraries
GDAL/OGR, PROJ.4, GEOS

Print info in shell script style (including SVN revision number)

Print usage summary

Verbose module output

Quiet module output

Force launching GUI dialog

g.version prints to standard output the GRASS version number, date, the GRASS GIS copyright (-c flag), and GRASS build information (-b flag).

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.4, 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()

g.version
GRASS 7.5.svn (2017)

g.version -r
GRASS 7.5.svn (2017)
libgis Revision: 70829
libgis Date: 2017-04-04 09:43:02 +0200 (Tue, 04 Apr 2017)

g.version -rge
version=7.5.svn
date=2017
revision=r71702M
build_date=2017-11-12
build_platform=x86_64-pc-linux-gnu
build_off_t_size=8
libgis_revision=70829
libgis_date="2017-04-04 09:43:02 +0200 (Tue, 04 Apr 2017) "
proj4=4.9.3
gdal=2.1.3
geos=3.6.1
sqlite=3.20.1

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.

Michael Shapiro, U.S. Army Construction Engineering Research Laboratory
Extended info by Martin Landa, Czech Technical University in Prague, Czech Republic

Last changed: $Date: 2017-11-12 20:33:52 +0100 (Sun, 12 Nov 2017) $

Available at: g.version source code (history)

Main index | General index | Topics index | Keywords index | Graphical index | Full index

© 2003-2019 GRASS Development Team, GRASS GIS 7.6.0 Reference Manual

GRASS 7.6.0