delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/08/09/21:14:46

X-Recipient: archive-cygwin AT delorie DOT 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 DOT schutter AT comcast DOT net>
To: cygwin AT cygwin DOT com
Subject: Re: how to update
Message-ID: <20120810011417.GB11017@penguin>
MIME-Version: 1.0
In-Reply-To: <501BD356.4080803@cygwin.com>
User-Agent: Mutt/1.5.21 (2010-09-15)
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT 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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019