[osgeo4w-dev] Download from mirror?

Matt Wilkie matt.wilkie at gov.yk.ca
Mon Mar 28 18:39:30 EDT 2011

It's just two files. Save 
http://trac.osgeo.org/osgeo4w/export/1170/trunk/apt/apt.py as 
%OSGeo4w_root%\bin\apt.py (default is C:\OSGeo4W)

Then create batch file %OSGeo4w_root%\bin\apt.bat with the following 

    @python "%OSGEO4W_ROOT%\bin\apt.py" %*

 From there you can run something like the following from inside an 
osgeo4w command shell:

    apt --mirror=http://download_alternate.osgeo.org update
    :: or  apt --mirror=file:///path/to/package/mirror update
    apt available | more
    apt install gdal17 gdal17-python (etc...)


matt wilkie
Geomatics Analyst
Information Management and Technology
Yukon Department of Environment
10 Burns Road * Whitehorse, Yukon * Y1A 4Y9
867-667-8133 Tel * 867-393-7003 Fax

On 28/03/2011 1:29 PM, andrea antonello wrote:
> Hi Matt,
> that would be an great option. There is only one problem with it. It
> is not installed by default, right? So for example in my case I have
> no way to get the commandline installer without passing through the
> gui installer.
> Or is there a way for this?
> Thanks,
> Andrea

More information about the osgeo4w-dev mailing list