Cygwin64静默安装办法
下载地址:
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 |
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 如何编写易于单元测试的代码
· 10年+ .NET Coder 心语,封装的思维:从隐藏、稳定开始理解其本质意义
· .NET Core 中如何实现缓存的预热?
· 从 HTTP 原因短语缺失研究 HTTP/2 和 HTTP/3 的设计差异
· AI与.NET技术实操系列:向量存储与相似性搜索在 .NET 中的实现
· 地球OL攻略 —— 某应届生求职总结
· 周边上新:园子的第一款马克杯温暖上架
· Open-Sora 2.0 重磅开源!
· 提示词工程——AI应用必不可少的技术
· .NET周刊【3月第1期 2025-03-02】