OSGeo4W guide

OSGeo4W on Windows — QGIS installer guide & package management

OSGeo4W is the official Windows installer for QGIS. Covers install modes, key file locations, updating packages, and using GDAL and Python tools from the OSGeo4W Shell.

OSGeo4W is the official Windows package manager for OSGeo software. It installs QGIS alongside GDAL, Python, PROJ, GRASS and other geospatial tools, all managed together.

OSGeo4W — the official Windows geospatial environment

OSGeo4W (Open Source Geospatial for Windows) is a package manager that bundles QGIS with all its dependencies into a shared environment. When you install QGIS via OSGeo4W, you also get:

  • GDAL/OGR — raster and vector data format library
  • PROJ — coordinate reference system transformation library
  • Python — scripting environment for QGIS plugins and automation
  • GRASS GIS — advanced geospatial analysis tools
  • SAGA GIS — additional processing algorithms

OSGeo4W install modes

ModeWhat it doesUse when
Express Desktop InstallInstalls QGIS LTR or Latest with all dependenciesMost users — start here
Express Web InstallMinimal server-side tools, no desktopServer environments
Advanced InstallFull control over every packagePower users, developers

OSGeo4W advanced package management

OSGeo4W Shell
# Open OSGeo4W Shell from Start menu, then:
# Update all packages:
C:\OSGeo4W> osgeo4w-setup --upgrade-also
# Check GDAL version:
C:\OSGeo4W> gdalinfo --version
GDAL 3.9.2, released 2024/09/02
# Check QGIS Python environment:
C:\OSGeo4W> python3 -c "import qgis; print(qgis.__version__)"
3.40.5

Key OSGeo4W file locations on Windows

ComponentDefault path
OSGeo4W rootC:\OSGeo4W
QGIS LTR binaryC:\OSGeo4W\bin\qgis-ltr.bat
GDAL toolsC:\OSGeo4W\bin\gdal*.exe
PythonC:\OSGeo4W\bin\python3.exe
QGIS plugins%APPDATA%\QGIS\QGIS3\profiles\default\python\plugins

OSGeo4W questions

How do I update QGIS installed via OSGeo4W?
Re-run osgeo4w-setup.exe and it will show available updates. Click Next through the wizard and OSGeo4W will update only the packages that have newer versions. See update guide.
Can I use OSGeo4W Python outside of QGIS?
Yes. Open the OSGeo4W Shell from the Start menu — it sets up the correct PATH and environment variables. You can use python3, gdalinfo, ogr2ogr and other tools directly in this shell.
OSGeo4W install directory — can I change it?
Yes. During setup, the first screen lets you change the root directory (default C:\OSGeo4W). Choose a path with no spaces. Changing it after install requires a full reinstall.

Need a full install walkthrough?

Step-by-step OSGeo4W install guide.

Install guide