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)?
Information on installed packages is kept in the /etc/setup/ directory of your Cygwin installation; if setup.exe cannot find this directory it will act as if you have no Cygwin installation. If setup.exe finds a newer version of an installed package available, it will automatically mark it to be upgraded.
You can always install any package you want after you've installed Cygwin. There is no need to install them all at once go. i'm sure most people(apart from the OP perhaps) are aware that you can do it very manually what you call 'doing the effort' and while you say about backing it up you don't state how.
The short answer to your query is, No. Cygwin's setup -x86.exe
does not give you the flexibility to specify version names along with package names. As per the official doc :
The basic reason for not having a more full-featured package manager is that such a program would need full access to all of Cygwin's POSIX functionality. 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
There are however a couple of workarounds if you want to download a specific package:
setup -x86.exe
. [source]
-q -L -l x:\cygwin-local\
, where your downloaded package tree is in x:\cygwin-local\
[source] . You can learn how to build and maitain packages here
make
.If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With