How do I install cygwin components from the command line?

Cygwin’s setup accepts command-line arguments to install packages from the command-line.

e.g. setup-x86.exe -q -P packagename1,packagename2 to install packages without any GUI interaction (‘unattended setup mode’).

(Note that you need to use setup-x86.exe or setup-x86_64.exe as appropriate.)

See https://cygwin.com/packages/ for the package list.

Leave a Comment