grep -q "^$curpkg " /etc/setup/installed.db; then apt-cyg show $curpkg \ | perl -ne ' if ($x = /install: ([^\s] )/) if (/\[prev\]/) ' fi done The above will print out the paths of the packages that need downloading, relative to the cygwin mirror root, omitting any packages that are already installed.To download them, I wrote the output to a file Dawid Ferenczy's answer is pretty complete but after I tried almost all of his options I've found that the Chocolatey’s cyg-get was the best (at least the only one that I could get to work). That is, however, difficult to provide in a Cygwin-free environment, such as exists on first installation.Additionally, Windows does not easily allow overwriting of in-use executables so installing a new version of the Cygwin DLL while a package manager is using the DLL is problematic." Cygwin’s setup uses Windows registry to overwrite executables which are in use and this method requires a reboot of Windows.Each time apt-cyg tries to connect to its server, it just can't get response and gets stuck with connecting to it.Since I'm there via SSH, how do I change the download mirror without using graphical interface?
It has features which other package managers don't have.
@vy32: because you didn't help to make them mature? There exist some scripts, which can be used as simple package managers for Cygwin.
But it’s important to know, that they always will be quite limited, because of.... Installing or removing packages is fine, each package manager for Cygwin can do that.
The following is a solution that allowed me to download only the packages I needed, with their dependencies, and copy them to the target for installation.
Here is a bash script that parses the output of \s] )/g) ' \ | sort \ | uniq) depends=$(echo -e "$depends\n$package") for curpkg in $depends; do if !Our Word of the Year choice serves as a symbol of each year’s most meaningful events and lookup trends.