Cygwin is a fantastic product for people that need to use Microsoft Windows and require some compatibility to Linux (or BSD or UNIX in general).
Unfortunately it is not trivial to keep it updated (and thus safe) as the update process requires downloading the latest installer and then clicking through the package list again and again on every update.
apt-get update, no
emerge --update @world, no
But ... the people at Red Hat (who now own Cygwin) are not mean, they are just not good at documenting things ...
Be sure to have wget installed via cygwin, you'll need it to fetch the installer automatically.
Then drop the following batch file as
C:\cygwin64 (or where you have installed cygwin1):
Once you start the batch (e.g. by double-clicking from Windows Explorer) it will download the latest installer from Cygwin.com and perform a silent update.
You need to approve the Windows installer warning as you do with every manual install / update as well. So it's not a no-click update but a one-or-two-clicks update.
Still much better than the click fest without the batch file.
If you have installed the 32bit version and/or used a different install path, adjust line 2 of the batch file accordingly. Did I need to say that? Hm, well, I did ... have a cookie. ↩