[osgeo4w-dev] Offline installer from cache not working

Jürgen E. Fischer jef at norbit.de
Mon May 18 03:08:44 PDT 2026


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.norbit.de/osgeo4w/v2 --site http://download.osgeo.org/osgeo4w/v2 --site http://ftp.osuosl.org/pub/osgeo/download/osgeo4w/v2
> 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/osgeo4w-dev/attachments/20260518/e8211688/attachment.sig>


More information about the osgeo4w-dev mailing list