g.version.1grass man page

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

Keywords

general, support, citing, copyright, version, license

Synopsis

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

Flags

-c
Print also the copyright message
-b
Print also the build information
-r
Print also the GIS library revision number and date
-e
Print also extended info for additional libraries
GDAL/OGR, PROJ.4, GEOS
-g
Print info in shell script style (including SVN revision number)
--help
Print usage summary
--verbose
Verbose module output
--quiet
Quiet module output
--ui
Force launching GUI dialog

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

Examples

Basic info

g.version
GRASS 7.0.0RC2 (2015)

GIS Library info

g.version -r
GRASS 7.0.0RC2 (2015)
libgis Revision: 64007
libgis Date: 2015-01-08 20:08:36 +0100 (Thu, 08 Jan 2015)

Full info in shell script style

g.version -rge
version=7.0.0RC2
date=2015
revision=64517M
build_date=2015-01-12
build_platform=x86_64-unknown-linux-gnu
libgis_revision=64007
libgis_date="2015-01-08 20:08:36 +0100 (Thu, 08 Jan 2015) "
proj4=4.8.0
gdal=1.11.1
geos=3.4.2
sqlite=3.8.8

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

Last changed: $Date: 2015-02-12 15:27:21 +0100 (Thu, 12 Feb 2015) $

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

© 2003-2016 GRASS Development Team, GRASS GIS 7.0.4 Reference Manual

Info

GRASS 7.0.4 Grass User's Manual