# HG changeset patch # User Oleksandr Gavenko # Date 1485292053 -7200 # Node ID 11b0fd0d6db6c5ddd1a4629609d15e2c42ec15f0 # Parent 66ccf8bdcbc0b1e511e355d7a192f9f4c64b97ca apt-cyg package manager. diff -r 66ccf8bdcbc0 -r 11b0fd0d6db6 cygwin.rst --- a/cygwin.rst Tue Jan 24 17:58:00 2017 +0200 +++ b/cygwin.rst Tue Jan 24 23:07:33 2017 +0200 @@ -36,6 +36,62 @@ Also you need edit /etc/passwd to point to correct home path. +apt-cyg package manager +======================= + +``apt-cyg`` is based on ``bash``, ``wget``, ``tar``, ``gawk`` and ``bzip2`` +packages and provide convenient commands for managing and queries packages:: + + $ apt-cyg update + $ apt-cyg install emacs-w32 + $ apt-cyg remove emacs-w32 + +Information about package and dependencies:: + + $ apt-cyg show emacs-w32 + $ apt-cyg depends wget + $ apt-cyg rdepends emacs + +List installed packages:: + + $ apt-cyg list + +Search for package with file across installed packages:: + + $ apt-cyg search stdio.h + +Search for package with file through cygwin.com:: + + $ apt-cyg searchall stdio.h + +List all packages in ``setup.ini``:: + + $ apt-cyg listall + +Find package by regex:: + + $ apt-cyg listall ^emacs + +To search for package name or list packages:: + +To switch between mirrors:: + + $ apt-cyg mirror ftp://ftp.cygwinports.org/pub/cygwinports + $ apt-cyg update + $ apt-cyg install php + + $ apt-cyg mirror ftp://www.fruitbat.org/pub/cygwin/circa/2016/08/30/104223 + +To change a location of directory where packages and ``setup.ini`` downloaded:: + + $ apt-cyg cache + C:\net + + $ apt-cyg cache ~/net + Cache set to C:\home\net. + +https://github.com/transcode-open/apt-cyg/ + Installation on Windows XP ==========================