From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp02.belwue.de (smtp02.belwue.de [129.143.71.87]) by sourceware.org (Postfix) with ESMTPS id F3F353851C2A for ; Mon, 7 Sep 2020 08:18:37 +0000 (GMT) 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@rus.uni-stuttgart.de Received: from fex.rus.uni-stuttgart.de (fex.rus.uni-stuttgart.de [129.69.1.129]) by smtp02.belwue.de (Postfix) with SMTP id 82ABF49B4 for ; Mon, 7 Sep 2020 10:18:36 +0200 (MEST) Date: Mon, 7 Sep 2020 10:18:36 +0200 From: Ulli Horlacher To: cygwin@cygwin.com Subject: Re: update with apt-cyg ? Message-ID: <20200907081836.GB25759@tik.uni-stuttgart.de> Mail-Followup-To: cygwin@cygwin.com References: <20200906221104.GC19595@tik.uni-stuttgart.de> <105e7934-f8a3-eb92-8fa0-dd22566c759b@SystematicSw.ab.ca> <20200906230010.GD19595@tik.uni-stuttgart.de> <8a6a9c60-5c8a-a322-0b5e-2210be28e670@SystematicSw.ab.ca> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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@cygwin.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Sep 2020 08:18:40 -0000 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@tik.uni-stuttgart.de Allmandring 30a Tel: ++49-711-68565868 70569 Stuttgart (Germany) WWW: http://www.tik.uni-stuttgart.de/ REF:<8a6a9c60-5c8a-a322-0b5e-2210be28e670@SystematicSw.ab.ca>