| 1 | Download the latest `apt-rxx.exe` from http://download.osgeo.org/osgeo4w/release/apt/. If you like rename to apt.exe. |
| 2 | Open a CMD shell and: |
| 3 | {{{ |
| 4 | SET OSGEO4W_ROOT=C:\Osgeo4W |
| 5 | apt setup |
| 6 | apt update |
| 7 | apt install shell |
| 8 | }}} |
| 9 | |
| 10 | == Results == |
| 11 | ><b>set osgeo4w_root=d:\test-osgeo4w</b><br> |
| 12 | ><b>apt setup</b><br> |
| 13 | Root dir not found, creating d:/test-osgeo4w<br> |
| 14 | creating d:/test-osgeo4w/etc/setup/<br> |
| 15 | creating d:/test-osgeo4w/etc/setup//installed.db<br> |
| 16 | getting d:/test-osgeo4w/etc/setup//setup.ini<br> |
| 17 | ...100%<br> |
| 18 | ><b>apt install shell</b><br> |
| 19 | to install:<br> |
| 20 | shell msvcrt<br> |
| 21 | Fetching http://download.osgeo.org/osgeo4w/./release/shell/shell-1.0.0-5.tar.bz2<br> |
| 22 | <br> |
| 23 | ...100% d:/test-osgeo4w/var/cache/setup/http%3a%2f%2fdownload.osgeo.org%2fosgeo4w/./release/shell/shell-1.0.0-5.tar.bz2<br> |
| 24 | <br> |
| 25 | a01e6dcdc9e2d2c49424585aa3e1b44f shell-1.0.0-5.tar.bz2 - remote<br> |
| 26 | a01e6dcdc9e2d2c49424585aa3e1b44f shell-1.0.0-5.tar.bz2 - local<br> |
| 27 | <br> |
| 28 | Fetching http://download.osgeo.org/osgeo4w/./release/msvcrt/msvcrt-1.0.1-2.tar.bz2<br> |
| 29 | ...100% d:/test-osgeo4w/var/cache/setup/http%3a%2f%2fdownload.osgeo.org%2fosgeo4w/./release/msvcrt/msvcrt-1.0.1-2.tar.bz2<br> |
| 30 | <br> |
| 31 | 195c192b98b7333e2d3f9e04717c2eb5 msvcrt-1.0.1-2.tar.bz2 - remote<br> |
| 32 | 195c192b98b7333e2d3f9e04717c2eb5 msvcrt-1.0.1-2.tar.bz2 - local<br> |
| 33 | installing shell 1.0.0-5<br> |
| 34 | <br> |
| 35 | >mkdir "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\OSGeo4W"<br> |
| 36 | >xxmklink "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\OSGeo4W\OSGeo4W.lnk" "d:\test-osgeo4w\OSGeo4W.bat" " " \ "OSGeo for Windows command shell" 1 "d:\test-osgeo4w\OSGeo4W.ico<br> |
| 37 | >xxmklink "C:\ProgramData\Desktop\OSGeo4W.lnk" "d:\test-osgeo4w\OSGeo4W.bat" " " \ "OSGeo for Windows command shell" 1 "d:\test-osgeo4w\OSGeo4W.ico<br> |
| 38 | Post_install complete, return code 0<br> |
| 39 | installing msvcrt 1.0.1-2<br> |
| 40 | <br> |
| 41 | >"d:\test-osgeo4w\bin\vcredist_x86.exe" /q<br> |
| 42 | >del "d:\test-osgeo4w\bin\vcredist_x86.exe"<br> |
| 43 | >textreplace -std -t bin/o4w_env.bat<br> |
| 44 | Post_install complete, return code 0<br> |
| 45 | <br> |
| 46 | ><b>apt list</b><br> |
| 47 | msvcrt 1.0.1-2<br> |
| 48 | shell 1.0.0-5<br> |
| 49 | ---- |
| 50 | |
| 51 | Shell is only a skeleton, there are no applications installed. So to get something actually useful: |
| 52 | {{{ |
| 53 | >apt available |
| 54 | |
| 55 | Packages available to install (* = already installed) |
| 56 | |
| 57 | agg-devel mapscript-dev-python |
| 58 | apache mapscript-java |
| 59 | apache-manual mapscript-python |
| 60 | ...snipped >140 package names... |
| 61 | libxdr xerces-c |
| 62 | libxml2 xerces-c-devel |
| 63 | mapfish_framework zlib |
| 64 | |
| 65 | >apt install gdal |
| 66 | ...snip... |
| 67 | |
| 68 | >gdalinfo --version |
| 69 | GDAL 1.5.4, released 2009/01/07 |
| 70 | }}} |