X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=1.2 required=5.0	tests=AWL,BAYES_05,EXECUTABLE_URI,FAKE_REPLY_C,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_NO,RCVD_IN_HOSTKARMA_YE,T_RP_MATCHES_RCVD
X-Spam-Check-By: sourceware.org
Date: Thu, 9 Aug 2012 19:14:17 -0600
From: Tom Schutter <t.schutter@comcast.net>
To: cygwin@cygwin.com
Subject: Re: how to update
Message-ID: <20120810011417.GB11017@penguin>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <501BD356.4080803@cygwin.com>
User-Agent: Mutt/1.5.21 (2010-09-15)
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On 03 Aug 2012 09:34:14, Larry Hall wrote:
> On 8/2/2012 6:10 PM, J.V. wrote:
> > I want cygwin to silently run the package manager and update my system
> > everytime I login.
> >
> > I have over 100 vm's that I use for various things and it is quite the
> > hassle to update every component in the system on each launch so am looking
> > for solutions or ideas on how to automatically update things like:
> >
> > cygwin
>
> See <http://cygwin.com/faq-nochunks.html#faq.setup.cli>

You can't run the package manager every time you login, because many
times you must kill all Cygwin processes (which includes your login
shell) during the update.

For a script that makes use of the FAQ section that Larry mentioned, see:

  https://github.com/tschutter/AppData/blob/master/bin/cygwin_setup.bat

It is not perfect, but it does do 80% of the work.  It does stop Cygwin
services, but it does not stop non-service Cygwin processes.  The next
improvement is to detect those...

-- 
Tom Schutter

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

