[osgeo4w-dev] Offline installer from cache not working

BADAWI Marwan marwan.badawi at scalian.com
Mon May 18 04:51:36 PDT 2026


OK! Finally got it working, thank you Jurgen !

Turns out I was not using the correct version of the installer... The filestamp of the one I was using says it was created on April 28th, and it was downloaded from the official QGIS website. But I tried the one from your curl address and it works.

When I tried your command line last week, I did it with my version of the installer and it didn't download the dependencies (just tried it again and had the same issue). But with your version of the installer, it works.

Ideally, if there is a way to install only QGIS and GDAL, that would be great, but qgis-full is definitely an acceptable solution.

Thank you again Jurgen!

Marwan

-----Original Message-----
From: osgeo4w-dev <osgeo4w-dev-bounces at lists.osgeo.org> On Behalf Of Jürgen E. Fischer via osgeo4w-dev
Sent: 18 May 2026 12:09
To: osgeo4w-dev at lists.osgeo.org
Subject: Re: [osgeo4w-dev] Offline installer from cache not working

Hi Marwan,

On Mon, 18. May 2026 at 08:39:20 +0000, BADAWI Marwan wrote:
> Here is the full process I am running:
> 1 - Perform an express install and select QGIS and GDAL components. Everything is working and this is what I am trying to reproduce (if there is an easier way to duplicate this, I am all for it).
> 2 - Recover the installed.db file from that install.
> 3 - Create an offline cache using the installed.db file and running
> the following command : osgeo4w-setup.exe --arch x86_64 --quiet-mode
> --autoaccept --no-desktop --local-package-dir C:\osgeo_cache
> --packages $(pkg_list) --download --site
> http://www.n/
> orbit.de%2Fosgeo4w%2Fv2&data=05%7C02%7Cmarwan.badawi%40scalian.com%7Ca
> 74c51725aed4106471208deb4c57558%7C0e4d90efb8ef49ea87127a63f4b52a4a%7C0
> %7C1%7C639146957373711560%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRy
> dWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%
> 3D%7C0%7C%7C%7C&sdata=1%2FFmbyZrCtj5VM4KjYkysbKVXdB8hGJI7DhTnZ8FbwU%3D
> &reserved=0 --site
> http://downl/
> oad.osgeo.org%2Fosgeo4w%2Fv2&data=05%7C02%7Cmarwan.badawi%40scalian.co
> m%7Ca74c51725aed4106471208deb4c57558%7C0e4d90efb8ef49ea87127a63f4b52a4
> a%7C0%7C1%7C639146957373744216%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGk
> iOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyf
> Q%3D%3D%7C0%7C%7C%7C&sdata=y1IvNnSBeC4pg%2BlQdA6xZ7ZPLCPuzZooxa4TAZrq7
> sg%3D&reserved=0 --site
> http://ftp.o/
> suosl.org%2Fpub%2Fosgeo%2Fdownload%2Fosgeo4w%2Fv2&data=05%7C02%7Cmarwa
> n.badawi%40scalian.com%7Ca74c51725aed4106471208deb4c57558%7C0e4d90efb8
> ef49ea87127a63f4b52a4a%7C0%7C1%7C639146957373765094%7CUnknown%7CTWFpbG
> Zsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFO
> IjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=egiX4yacy3vt07eXlt%2BQ
> Zwzrbni%2BSAL%2BX6ULCCzo0%2Bc%3D&reserved=0
> 4 - Uninstall the manually installed version
> 5 - Install with the following command: osgeo4w-setup.exe --arch
> x86_64 --quiet-mode --autoaccept --no-desktop --local-package-dir
> C:\osgeo_cache --packages $(pkg_list) --root C:\OSGeo4W
> --local-install

As said:

mkdir packages
cd packages
curl -JLO https://download.osgeo.org/osgeo4w/v2/osgeo4w-setup.exe
osgeo4w-setup.exe --quiet-mode --autoaccept --arch x86_64 --local-package-dir %CD% --download -s https://download.osgeo.org/osgeo4w/v2 --packages qgis-full

and then copying packages to an unconnected machine and running:

cd packages
osgeo4w-setup.exe --quiet-mode --autoaccept --arch x86_64 --local-package-dir %CD% --local-install --packages qgis-full

works fine for me.   No need to preinstall and mess with installed.db and
--no-desktop is default anyway.   But your package list also works for
me.  That's apparently not the problem.  setup.log or setup.log.full might have more information.


Jürgen

--
Jürgen E. Fischer           norBIT GmbH             Tel. +49-4931-918175-31
Dipl.-Inf. (FH)             Rheinstraße 13          Fax. +49-4931-918175-50
Software Engineer           D-26506 Norden            https://www.norbit.de/
QGIS release manager (PSC)  Germany                  Matrix: @jef:osgeo.org


More information about the osgeo4w-dev mailing list