下载地址:
http://www.cygwin.com/setup-x86_64.exe
静默安装办法:
.\setup-x86_64.exe --no-shortcuts --root D:\\Cygwin64 --packages gcc-core,gcc-g++,make,cmake,gdb,binutils --quiet-mode --upgrade-also --site http://mirrors.163.com/cygwin/
--no-shortcuts 禁止创建桌面和开始菜单快捷方式
--root D:\\Cygwin64 安装的根目录(D:\\Cygwin64为指定的安装目录)
--packages gcc-core,gcc-g++,make,cmake,gdb,binutils 指定安装的软件包,多个使用逗号分隔
--upgrade-also 更新已经安装的包
--site http://mirrors.163.com/cygwin/ 指定下载的镜像站
PS C:\Users\Lemon\Downloads> .\setup-x86_64.exe -h PS C:\Users\Lemon\Downloads> Cygwin setup 2.897 Command Line Options: --allow-unsupported-windows Allow old, unsupported Windows versions -a --arch Architecture to install (x86_64 or x86) -C --categories Specify entire categories to install -o --delete-orphans Remove orphaned packages -A --disable-buggy-antivirus Disable known or suspected buggy anti virus software packages during execution. -D --download Download packages from internet only -f --force-current Select the current version for all packages -h --help Print help -I --include-source Automatically install source for every package installed -i --ini-basename Use a different basename, e.g. "foo", instead of "setup" -U --keep-untrusted-keys Use untrusted keys and retain all -L --local-install Install packages from local directory only -l --local-package-dir Local package directory -m --mirror-mode Skip package availability check when installing from local directory (requires local directory to be clean mirror!) -B --no-admin Do not check for and enforce running as Administrator -d --no-desktop Disable creation of desktop shortcut -r --no-replaceonreboot Disable replacing in-use files on next reboot. -n --no-shortcuts Disable creation of desktop and start menu shortcuts -N --no-startmenu Disable creation of start menu shortcut -X --no-verify Don‘t verify setup.ini signatures --no-version-check Suppress checking if a newer version of setup is available -O --only-site Do not download mirror list. Only use sites specified with -s. -M --package-manager Semi-attended chooser-only mode -P --packages Specify packages to install -p --proxy HTTP/FTP proxy (host:port) -Y --prune-install Prune the installation to only the requested packages -K --pubkey URL of extra public key file (gpg format) -q --quiet-mode Unattended setup mode -c --remove-categories Specify categories to uninstall -x --remove-packages Specify packages to uninstall -R --root Root installation directory -S --sexpr-pubkey Extra public key in s-expr format -s --site Download site URL -u --untrusted-keys Use untrusted saved extra keys -g --upgrade-also Also upgrade installed packages --user-agent User agent string for HTTP requests -v --verbose Verbose output -V --version Show version -W --wait When elevating, wait for elevated child process
原文地址:https://www.cnblogs.com/glc400/p/12078394.html
时间: 2024-10-06 03:59:19