Created
May 21, 2016 17:47
-
-
Save AviDuda/fd90fbe1f6be71ac010e7c51a9d2e5da to your computer and use it in GitHub Desktop.
Upgrade Cygwin packages with a simple alias
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo 'alias upgrade-cygwin="wget https://cygwin.com/setup-x86_64.exe -O ~/setup-x86_64.exe; chmod +x ~/setup-x86_64.exe; ~/setup-x86_64.exe --no-desktop --no-shortcuts --no-startmenu --quiet-mode --upgrade-also --delete-orphans; echo Now close Cygwin."' >> ~/.bashrc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
add
--timestamping
- then it will check the last-modified headers (which cygwin.org does provide) and only download setup if your setup actually is out of date, it makes the upgrade much faster if you have an up-to-date setup.exe ^^fwiw my C:\cygwin64\setup.bat contains