Downloading GRASS GIS Source
(Note: for binary installers, go here)
Table of Contents
Packaged Source
The source code of all official releases is available for download from:
- For a release download list (GRASS GIS 5.x to 7.x), see Release overview page
- Download at https://grass.osgeo.org/download/ or directly from
- https://grass.osgeo.org/grass78/source/ (upcoming stable)
- https://grass.osgeo.org/grass76/source/ (current)
- https://grass.osgeo.org/grass74/source/ (old)
- https://grass.osgeo.org/grass72/source/ (very old)
- https://grass.osgeo.org/grass70/source/ (historical)
- https://grass.osgeo.org/grass64/source/ (historical)
- https://grass.osgeo.org/grass54/source/ (historical)
Weekly snapshots
Source code tarballs are available from here:
- https://grass.osgeo.org/grass77/source/snapshot/ (development)
- https://grass.osgeo.org/grass76/source/snapshot/ (stable)
- https://grass.osgeo.org/grass74/source/snapshot/ (old stable)
- https://grass.osgeo.org/grass72/source/snapshot/ (historical)
- https://grass.osgeo.org/grass70/source/snapshot/ (historical)
- https://grass.osgeo.org/grass64/source/snapshot/ (historical)
Git GRASS main source code repository
The GRASS GIS software lives in the Git source control system hosted by GitHub. It can be browsed online using GitHub UI. With the Git client software installed, various versions can be accessed:
git clone https://github.com/OSGeo/grass.git
GRASS 7.9
The development branch (master) version of GRASS 7 can be extracted using the command:
git checkout master # subsequent updates: git pull
GRASS 7.8
To extract the current 7.8.x release branch version (stable), use the command:
git checkout releasebranch_7_8 # subsequent updates: git pull
GRASS 7.6
To extract the current 7.6.x release branch version (stable), use the command:
git checkout releasebranch_7_6 # subsequent updates: git pull
GRASS 7.4
To extract the current 7.4.x release branch version (old), which may receives bugfixes, use the command:
git checkout releasebranch_7_4 # subsequent updates: git pull
GRASS 7.2
Note: not recommended any more since May 2019
To extract the current 7.2.x release branch version (historical), use the command:
git checkout releasebranch_7_2 # subsequent updates: git pull
GRASS 7.0
Note: not recommended any more since May 2016
To extract the current 7.0.x release branch version (historical), use the command:
git checkout releasebranch_7_0 # subsequent updates: git pull
GRASS 6.4
Legacy code of GRASS GIS versions 3.2, 4.x, 5.x, 6.x (1987-2016) is available from grass-legacy
Git repository hosted on GitHub.
To extract the current state of the old 6.4.x release branch version (historical), use the command:
git clone https://github.com/OSGeo/grass-legacy.git cd grass-legacy git checkout releasebranch_6_4
To extract a specific release, e.g. the 6.4.0 release from 2010, use the command:
git checkout release_20100903_grass_6_4_0
Committing code to Git (developers with write access)
Note: Write access to the Git repository is governed by RFC 2: Legal aspects of code contributions. Committers should take care to use https/ssh for access, and use their GitHub Account for authentication. See also How-To Contribute and How-To Git.
Git GRASS Addons source code repository
Want to contribute? Read on here
With the Git client software installed, the current GRASS Addons can be extracted using the command:
git clone https://github.com/OSGeo/grass-addons.git
Update access to the Git Addons repository is governed by RFC 2: Legal aspects of code contributions. Committers should take care to use https/ssh for access, and use their GitHub Account for authentication. See also How-To Contribute and How-To Git.
Online browseable live web interfaces on GitHub source code repository
- GitHub interfaces:
Historical SVN
While SVN history for many individual files exists back to 1999. GRASS source code has been migrated to Git in May 2019.
- http://svn.osgeo.org/grass
- Online browseable UI, https://trac.osgeo.org/grass/browser
Historical CVS
- Our old GRASS 5/6.1 CVS at freegis.org (ViewCVS interface; no longer updated since move to OSGeo SVN)
- A copy of GRASS-CVS has been saved here at the Czech Technical University in Prague (CZ), Faculty of Civil Engineering.
Historical checkouts
You can download the source code as it existed on a particular day as follows:
git checkout 'master@{2008-09-01}'
Compilation notes for various operating systems
Please see here.