选择从互联网安装, 在"User URL"处输入以下地址
http://mirrors.163.com/cygwin/
点击"Add"按钮, 然后选中"http://mirrors.163.com", 点击"下一步"进行安装
并勾选wget
安装apt-cyg
# wget https://raw.githubusercontent.com/transcode-open/apt-cyg/master/apt-cyg
# mv apt-cyg /bin/apt-cyg
# chmod +x /bin/apt-cyg
参数详解:
apt-cyg
apt-cyg is a Cygwin package manager. It includes a command-line installer for Cygwin which cooperates with Cygwin Setup and uses the same repository. The syntax is similar to apt-get. Usage examples:
apt-cyg install <package names> to install packages
apt-cyg remove <package names> to remove packages
apt-cyg update to update setup.ini
apt-cyg list [pattern(s)] to list packages matching given pattern. If no pattern is given, list all installed packages.
apt-cyg show <pattern(s)> to show packages matching patterns
apt-cyg search <commands or files> to locate parent packages