Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I install cygwin components from the command line?

Is there a tool in the Cygwin package similar to apt-get on Debian or yum on redhat that allows me to install components from the command line?

like image 548
vy32 Avatar asked Feb 13 '12 11:02

vy32


2 Answers

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 http://cygwin.com/packages/ for the package list.

like image 87
jturney Avatar answered Oct 05 '22 18:10

jturney


For a more convenient installer, you may want to use apt-cyg as your package manager. Its syntax similar to apt-get, which is a plus. For this, follow the above steps and then use Cygwin Bash for the following steps

wget https://raw.githubusercontent.com/transcode-open/apt-cyg/master/apt-cyg chmod +x apt-cyg mv apt-cyg /usr/local/bin 

Now that apt-cyg is installed. Here are few examples of installing some packages

apt-cyg install nano apt-cyg install git apt-cyg install ca-certificates 
like image 31
sagunms Avatar answered Oct 05 '22 18:10

sagunms