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 content:

   @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...)

cheers,

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
http://environmentyukon.gov.yk.ca/geomatics/
--------------------------------------------

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
_______________________________________________
osgeo4w-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/osgeo4w-dev

Reply via email to