Search code examples
cygwin

Cygwin - Installing a specific package version using the commandline installer


Using the commandline installer, one can easily install Cygwin with a list of wanted packages like so

setup-x86.exe -q -p='tar,sed,<more packages>'

Is it also possible to fix the version of the packages, something like

setup-x86.exe -q -p='tar:1.2.3,sed,<more packages>'

(this obviously doesn't work)?


Solution

  • This is function that Cygwin's installer now provides. By default, when running from the command line, it will install the latest version of each package, but you can specify a version with =. For example:

    setup-x86_64.exe -P git=2.35.0-1,vim
    

    will install the latest version of Vim, and version 2.35.0-1 of Git.