wiki:pkg-apt/AptCommands

Version 5 (modified by maphew, 14 years ago) ( diff )

added usage notes for --mirror

apt command reference

   **apt [OPTION]... COMMAND [PACKAGE]...**

Commands:
---------
|     available -  show packages available to be installed
|     ball - print tarball name
|     build - build package from source in CWD
|     download - download package
|     find - package containing file
|     help - help COMMAND
|     install - download and install packages, including dependencies
|     list - installed packages
|     md5 - check md5 sum
|     missing - print missing dependencies
|     new - list available upgrades to currently installed packages
|     remove - uninstall packages
|     requires - print requires: for package
|     search - search package list
|     setup - cygwin environment
|     source - download, build and install
|     update - setup.ini
|     upgrade - all installed packages
|     url - print tarball url
|     version - print installed version

Options:
--------
|     -d,--download          : download only
|     -i,--ini=FILE          : use setup.ini [D:/o4w/etc/setup//setup.ini]
|     -m,--mirror=URL        : use mirror [!http://download.osgeo.org/osgeo4w] 
|     -r,--root=DIR          : set osgeo4w root [D:/o4w]
|     -t,--t=NAME            : set dist name (*curr*, test, prev)
|     -x,--no-deps           : ignore dependencies
|     -s,--start-menu=NAME   : set the start menu name (OSGeo4W)

Notes

For --mirror, local paths need to use file:///d:/path/to/packages format. The mirror used is remembered for future invocations, meaning you have to change it back to the default manually, e.g.:

apt --mirror=http://download.osgeo.org/osgeo4w update
Note: See TracWiki for help on using the wiki.