[osgeo4w-dev] o4w-apt: an apt-get like utility for OSGeo4W

Jeff McKenna jmckenna at gatewaygeomatics.com
Fri Jul 4 10:00:26 EDT 2008


On 3-Jul-08, at 3:01 PM, Matt Wilkie wrote:

> Hello World,
>
> o4w-apt.py is a program for installing modules from the command line  
> within an OSGeo4W shell.
>
> It is based on 'cyg-apt' by Jan Nieuwenhuizen. The main changes are  
> to using pure python instead of system calls for rm, mv, gzip, tar,  
> md5sum. The only wholly new function is to automatically run the  
> postinstall/.bat files.
>
> == Usage ==
>
> d:\> o4w-apt update
> . . . . .
>
> d:\> o4w-apt new
> gdal                1.5.2-2
> gdal-ecw            1.5.2-2
> java                1.6.0._.5-2
> msvcrt              1.0.0-6
> ogdi                3.2.0.b.1-4
> openev              1.9.0-3
> proj                4.6.0-3
>
> d:\> o4w-apt install proj
> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
> . . . . . . . . . . . . . . . . . . . C:/OSGeo4W/var/cache/setup/http 
> %3a%2f%2fdo
> wnload.osgeo.org%2fosgeo4w/./release/proj/proj-4.6.0-3.tar.bz2
>
> 76d10d9bbe120ef44554fb57623d288c  proj-4.6.0-3.tar.bz2
> c2593a75bad7951868d77457f54cf1a2  proj-4.6.0-3.tar.bz2
> MD5 does't match, carrying on anyway (probably a dumb idea).
>
> preparing to replace proj 4.6.0-2
> installing proj 4.6.0-3
>
> d:\>
>
> == Known Problems ==
>
> The md5sum never matches. I don't know why. Current workaround is  
> report the mismatch but carry on anyway.
>
> I'm not a developer. This is the most significant python project  
> I've ever undertaken and without doubt THERE ARE PROBLEMS. Still, it  
> seems to work for me on my computer. I don't know what it might do  
> to anyone elses.
>
> ((http://code.google.com/p/maphew/wiki/AptGetLike))
> ((http://code.google.com/p/maphew/source/browse/trunk/gis/o4w_extras/bin/o4w-apt.py) 
> )
>
> cheers,
>
> -- 
> matt wilkie
> -

Hi Matt,

I also think this is very cool....but I must say that for the average  
windows user they are terrified of the commandline, so I am hesitant  
to recommend more reliance on the commandline for that reason, after  
teaching first-time users commandline use for many years.

That said, this would be a nice thing to run in the backend that the  
user doesn't notice (e.g. user presses "update all packages" button  
and the installer executes something lke "o4w-apt update").  This in  
fact would work with any installer environment, including Nullsoft.   
Food for thought.

-jeff


---
Jeff McKenna
FOSS4G Consulting and Training Services
http://www.gatewaygeomatics.com/



More information about the osgeo4w-dev mailing list