Skip to content

Instantly share code, notes, and snippets.

@furlongm
Created December 8, 2016 06:13
Show Gist options
  • Save furlongm/7c06af77018df93ec1fd890ffbc5dfac to your computer and use it in GitHub Desktop.
Save furlongm/7c06af77018df93ec1fd890ffbc5dfac to your computer and use it in GitHub Desktop.
cygwin-auto-update.bat
cd %USERPROFILE%\Downloads
c:\cygwin64\bin\curl.exe http://cygwin.com/setup-x86_64.exe > setup-x86_64.exe
setup-x86_64.exe --no-desktop --no-shortcuts --no-startmenu --quiet-mode --verbose --force-current --delete-orphans --upgrade-also --no-admin
@divinity76
Copy link

ps, the cygwin website supports last-modified timestamps, as does wget, thus this works much better:
bin\wget.exe --timestamping http://www.cygwin.com/setup-x86_64.exe && start setup-x86_64.exe

  • now the cygwin installer is only updated if there actually is a new version available, and checking the last-modified http header just takes a second.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment