delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2020/09/07/04:19:29

X-Recipient: archive-cygwin AT delorie DOT com
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org F3F353851C2A
Authentication-Results: sourceware.org; dmarc=none (p=none dis=none)
header.from=rus.uni-stuttgart.de
Authentication-Results: sourceware.org;
spf=none smtp.mailfrom=framstag AT rus DOT uni-stuttgart DOT de
Date: Mon, 7 Sep 2020 10:18:36 +0200
From: Ulli Horlacher <framstag AT rus DOT uni-stuttgart DOT de>
To: cygwin AT cygwin DOT com
Subject: Re: update with apt-cyg ?
Message-ID: <20200907081836.GB25759@tik.uni-stuttgart.de>
Mail-Followup-To: cygwin AT cygwin DOT com
References: <20200906221104 DOT GC19595 AT tik DOT uni-stuttgart DOT de>
<105e7934-f8a3-eb92-8fa0-dd22566c759b AT SystematicSw DOT ab DOT ca>
<20200906230010 DOT GD19595 AT tik DOT uni-stuttgart DOT de>
<8a6a9c60-5c8a-a322-0b5e-2210be28e670 AT SystematicSw DOT ab DOT ca>
MIME-Version: 1.0
In-Reply-To: <8a6a9c60-5c8a-a322-0b5e-2210be28e670@SystematicSw.ab.ca>
User-Agent: Mutt/1.5.23 (2014-03-12)
X-Spam-Status: No, score=-0.6 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS,
KAM_EXEURI, KAM_LAZY_DOMAIN_SECURITY, KAM_SHORT, RCVD_IN_MSPIKE_H3,
RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_NONE,
TXREP autolearn=no autolearn_force=no version=3.4.2
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on
server2.sourceware.org
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
Errors-To: cygwin-bounces AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces AT cygwin DOT com>

On Sun 2020-09-06 (19:11), Brian Inglis wrote:

> > cygstart /setup-x86_64.exe --quiet-mode
> > 
> > But this does not upgrade my cygwin installation in my users windows home, 
> > but does a new installation in c:\cygwin64
> 
> Download:
> 
> 	$ curl -OJR https://cygwin.com/setup-x86_64.exe
> OR
> 	$ wget -N https://cygwin.com/setup-x86_64.exe

Ok, this is a easy :-)


> If using unattended (--quiet) mode, you have to specify everything else:
> 
> 	$ ./setup-x86_64 -gq -R "$rootdir" -l "$pkgdir" -s $site
> 
> otherwise try semi-attended (--package-manager) chooser-only mode:
> 
> 	$ ./setup-x86_64 -gM -R "$rootdir" -l "$pkgdir" -s $site
> 
> which lets you see the prompt screens and decide whether you need to change
> anything.

Great! This helps me a lot!


> Defaults should have been saved in /etc/setup/setup.rc and packages in
> /etc/setup/installed.db the first time you installed Cygwin, so that subsequent
> upgrades will use the same locations.

I did not know /etc/setup/setup.rc, but it is there with the content:

last-cache
	C:\Users\admin\cygwin\.pkg-cache
mirrors-lst
	http://cygwin.mirror.constant.com/;cygwin.mirror.constant.com;United States;New Jersey
(...)        
last-mirror
	http://ftp.fau.de/cygwin/
net-method
	IE
last-action
	Download,Install


> If your alternative package manager is not following these conventions, please
> consider whether that is a safe approach if other apps are needed for upgrades,
> unless your package manager uses workarounds so they are not needed.

cygwin-portable-installer(*) is not an alternative package manager, but
just a script wrapper for setup.exe

The installation step is:

echo Running Cygwin setup...
"%CYGWIN_ROOT%\%CYGWIN_SETUP_EXE%" --no-admin ^
 --site %CYGWIN_MIRROR% %CYGWIN_PROXY% ^
 --root "%CYGWIN_ROOT%" ^
 --local-package-dir "%CYGWIN_ROOT%\.pkg-cache" ^
 --no-shortcuts ^
 --no-desktop ^
 --delete-orphans ^
 --upgrade-also ^
 --no-replaceonreboot ^
 --quiet-mode ^
 --packages dos2unix,wget,%CYGWIN_PACKAGES% || goto :fail


When I later run /setup-x86_64 without options it asks for 
"Choose A Download Source"

I can skip this step if I start it with:
/setup-x86_64 -s http://ftp.fau.de/cygwin

Is there something missing in my /etc/setup/setup.rc?
What should I add there?
Also the CYGWIN_ROOT (option -R)?

Ok, I could write a setup.cmd with the options you named, but it would be
better if setup-x86_64.exe knows my defaults.


(*) I need cygwin-portable-installer for my users, which are overcharged
with a regular cygwin installation. With cygwin-portable-installer I can
specify all needed packages, the installation place and some additional
software (of my own).


-- 
Ullrich Horlacher              Server und Virtualisierung
Rechenzentrum TIK         
Universitaet Stuttgart         E-Mail: horlacher AT tik DOT uni-stuttgart DOT de
Allmandring 30a                Tel:    ++49-711-68565868
70569 Stuttgart (Germany)      WWW:    http://www.tik.uni-stuttgart.de/
REF:<8a6a9c60-5c8a-a322-0b5e-2210be28e670 AT SystematicSw DOT ab DOT ca>
--
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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