Install the grass package on your Linux distribution. Have a look at
Repology for an extended
list of GRASS packages or directly check the
packaging status
to quickly know which GRASS version is currently available for your distro.
Add the ubuntugis-unstable PPA to your system:
sudo add-apt-repository ppa:ubuntugis/ubuntugis-unstableUpdate your package list:
sudo apt updateInstall with the following shell command:
sudo apt install grassFor more information visit ubuntugis-unstable.
Download the latest weekly GRASS binary snapshot from https://grass.osgeo.org/grass85/binary/linux/snapshot/ and make it executable:
chmod +x grass-*-x86_64-pc-linux-gnu-*-install.shInstall with the following shell command:
sh grass-*-x86_64-pc-linux-gnu-*-install.shFor more information visit snapshots.
Install with the following shell command:
sudo apt install grassFor more information visit debian packages.
Install with the following shell command:
sudo dnf install grassFor more information visit Fedora packages.
Install with the following shell command:
sudo pacman -S grassFor more information visit Arch Linux packages.
Install with the following shell command:
sudo yum install grassFor more information visit EPEL8 (RHEL8/Centos8) packages.
Install with the following shell command:
sudo emerge grassFor more information visit Gentoo packages.
Install with the following shell command:
sudo dnf install grassFor more information visit Mageia packages.
Install with the following shell command:
sudo zypper install grassFor more information visit openSUSE packages.
To compile and install GRASS from source, follow these steps from the GRASS wiki.
Please consider a financial contribution to the GRASS project to help us improve and maintain the software.
Support UsClick the button below to download the latest macOS version of GRASS.
Find GRASS binary installers for current, legacy, and preview releases on GRASS for the Mac.
Install with the following shell command:
sudo port install grassFor more information visit MacPorts GRASS.
See this brief introduction on using MacPorts. GRASS is also available for macOS (Intel and Apple Silicon) from conda-forge — see the Conda tab.
Please consider a financial contribution to the GRASS project to help us improve and maintain the software.
Support UsClick the button below to download the latest Windows version of GRASS.
Install GRASS on Windows with the OSGeo4W installer. GRASS is also available for Windows (64-bit) from conda-forge — see the Conda tab.
OSGeo4W is an installer for a broad set of open source geospatial software packages including GRASS as well as many other packages (QGIS, GDAL/OGR, and more). Download the OSGeo4W v2 installer to install GRASS and other OSGeo software on Windows.
OSGeo4W v2 is the standard repository and does not include a 32-bit version. The legacy v1 installers are only needed for 32-bit systems. Upgrading an existing v1 installation by pointing it at the v2 repository is not supported — do a fresh install or use a different install directory.
The following install modes are offered (see also the dedicated wiki page for further details):
Run the downloaded installer as administrator and select the grass (stable) or grass-daily (development) packages to install. All needed dependencies (e.g. GDAL, common python packages) will be automatically downloaded.
All packages can be individually selected and additional useful packages (e.g. python-pandas, msys) are available, too.
Installation can also be done through the command line:
osgeo4w-setup.exe -q -k -P grass -s https://download.osgeo.org/osgeo4w/v2/x86_64/In order to have GRASS support (also in QGIS-Processing) you need to install the “qgis*-grass-plugin” packages.
Please consider a financial contribution to the GRASS project to help us improve and maintain the software.
Support UsOfficial GRASS Docker images are available on Docker Hub (osgeo/grass-gis). For a list of GRASS versions, see the docker tag list.
The following Docker images are generated from the current stable GRASS releasebranch 8.5 :
Install with the following shell command:
docker pull osgeo/grass-gis:releasebranch_8_5-alpineInstall with the following shell command:
docker pull osgeo/grass-gis:releasebranch_8_5-debianInstall with the following shell command:
docker pull osgeo/grass-gis:releasebranch_8_5-ubuntuInstall with the following shell command:
docker pull osgeo/grass-gis:releasebranch_8_5-ubuntu_wxguiThe following Docker images are generated from the GRASS main branch (preview, active development):
Install with the following shell command:
docker pull osgeo/grass-gis:main-alpineInstall with the following shell command:
docker pull osgeo/grass-gis:main-debianInstall with the following shell command:
docker pull osgeo/grass-gis:main-ubuntuInstall with the following shell command:
docker pull osgeo/grass-gis:main-ubuntu_wxguiPlease refer to the GRASS Docker README.
Please consider a financial contribution to the GRASS project to help us improve and maintain the software.
Support UsThe grass package is available on
conda-forge
for Windows (64-bit), Linux (64-bit), and
macOS (Intel and Apple Silicon).
See the conda-forge grass feedstock for packaging details.
To add GRASS into an existing environment:
conda install -c conda-forge grass
If you don’t have an environment yet, create a new environment and install in one step:
conda create -n grass -c conda-forge grass
conda activate grass
The same works with mamba for faster dependency resolution:
mamba install -c conda-forge grass
To create a reproducible environment, save the following as environment.yml:
name: grass
channels:
- conda-forge
dependencies:
- grass
Then create the environment with:
conda env create -f environment.yml
conda activate grass
For faster dependency across multiple platforms, support for pyproject.toml
and environment.yml, and global installation of tools use pixi:
# Installing grass as part of a workspace
pixi init name-of-my-project-using-grass
cd name-of-my-project-using-grass
pixi add grass
# Activates a shell where grass is accessible
pixi shell
If you want to install GRASS as a globally available tool across your system without having to activate an environment:
pixi global install grass
By default, dependencies for the workspace are stored in the pixi.toml file.
The pixi.lock file is the machine-readable file that lists all of the
dependencies for your workspace.
If you’re using pixi and want to share your environment with conda or mamba users:
pixi workspace export conda-environment environment.yml
To use GRASS from a Python script in an active conda environment,
add the GRASS Python package path to sys.path:
import subprocess
import sys
result = subprocess.run(["grass", "--config", "python_path"],
check=True, text=True, capture_output=True)
sys.path.append(result.stdout.strip())
import grass.script as gs
After activating the conda environment, start GRASS from the command line:
grass
Please consider a financial contribution to the GRASS project to help us improve and maintain the software.
Support UsSource code is available on GitHub. You can download the latest release at https://github.com/OSGeo/grass/releases.
To compile and install GRASS from source, follow these steps from the GRASS wiki.
Please consider a financial contribution to the GRASS project to help us improve and maintain the software.
Support Us