How do I install a cygwin package from the command line?

yaz*_*com 15 installation cygwin

I can install a cygwin package when I first install cygwin, but is there something like:

cyginstall git
Run Code Online (Sandbox Code Playgroud)

kind of like apt-get?

Dan*_*tta 19

您应该可以setup.exe在没有 GUI 的情况下使用:

setup.exe -q -n -N -d -R c:\cygwin -s http://yourFavoriteMirror \ 
-l c:\localPackageDir -P  <comma-separated list of packages to install>
Run Code Online (Sandbox Code Playgroud)

这是来自cygwin 邮件列表(和后续帖子)


hel*_*oel 13

这个问题已经在这里过了。回答:

wget http://apt-cyg.googlecode.com/svn/trunk/apt-cyg
chmod +x apt-cyg
mv apt-cyg /usr/local/bin/
apt-cyg install bc
Run Code Online (Sandbox Code Playgroud)