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.
What is OSGeo4W?
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
Install modes
OSGeo4W install modes
| Mode | What it does | Use when |
|---|---|---|
| Express Desktop Install | Installs QGIS LTR or Latest with all dependencies | Most users — start here |
| Express Web Install | Minimal server-side tools, no desktop | Server environments |
| Advanced Install | Full control over every package | Power users, developers |
Advanced install
OSGeo4W advanced package management
# 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
File locations
Key OSGeo4W file locations on Windows
| Component | Default path |
|---|---|
| OSGeo4W root | C:\OSGeo4W |
| QGIS LTR binary | C:\OSGeo4W\bin\qgis-ltr.bat |
| GDAL tools | C:\OSGeo4W\bin\gdal*.exe |
| Python | C:\OSGeo4W\bin\python3.exe |
| QGIS plugins | %APPDATA%\QGIS\QGIS3\profiles\default\python\plugins |
FAQ
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.