cygwin installing packages after install

All the random crap I spend all day long figuring out.
Post Reply
User avatar
syntax
Site Admin
Posts: 54
Joined: Tue Jan 06, 2009 9:25 pm

cygwin installing packages after install

Post by syntax » Thu Jan 09, 2014 2:22 pm

http://superuser.com/questions/40545/up ... 026#301026

download and put the setup.exe (or setup-x86.exe/setup-x86_64.exe) in cygwin root directory (C:\cygwin64).
"setup.exe -n -q -s ftp://lug.mtu.edu/cygwin -P curl,git,make"
This will install cURL, git, and make, with no shortcuts in quiet mode
Old question, but for others that google and got here: Official setup.exe has command line arguments which allowed me to prepare simple *.bat script - just put following line in e.g. "install-pkg.bat" and put that file into your root directory (e.g. C:\cygwin):

setup.exe --no-desktop --no-shortcuts --no-startmenu --quiet-mode --root "%cd%" --packages %*

You need to download and put http://www.cygwin.com/setup.exe into the same directory. Now all you have to do to install package is:

install-pkg packagename

Post Reply