I want to automatically install Cygwin using a batch file.

I got the command like this until now:

setup-x86.exe --packages rsync -l "F:/v2.0/cygwin/packages" -L

The setup options can be viewed like this:

setup-x86.exe --help

I am a little confused. Because there are various options but none for the destination installation directory. It always installs to C:/cygwin and it seems it cannot be changed.

Can anyone help?


The help provides an overview of all options. In your case you are looking for:

$ ./setup-x86_64.exe --help | grep Root
 -R --root                         Root installation directory
  • Oh man I was blind thank you...
    – somega
    Nov 25 at 9:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.