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 46F8E385E005 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=SystematicSw.ab.ca Authentication-Results: sourceware.org; spf=none smtp.mailfrom=brian DOT inglis AT systematicsw DOT ab DOT ca X-Authority-Analysis: v=2.3 cv=ecemg4MH c=1 sm=1 tr=0 a=kiZT5GMN3KAWqtYcXc+/4Q==:117 a=kiZT5GMN3KAWqtYcXc+/4Q==:17 a=IkcTkHD0fZMA:10 a=SxqnZX0uAAAA:20 a=w_pzkKWiAAAA:8 a=jChkm-x5hCMFubTIiR0A:9 a=QEXdDO2ut3YA:10 a=sRI3_1zDfAgwuvI8zelB:22 Subject: Re: update with apt-cyg ? 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> From: Brian Inglis Autocrypt: addr=Brian DOT Inglis AT SystematicSw DOT ab DOT ca; prefer-encrypt=mutual; keydata= mDMEXopx8xYJKwYBBAHaRw8BAQdAnCK0qv/xwUCCZQoA9BHRYpstERrspfT0NkUWQVuoePa0 LkJyaWFuIEluZ2xpcyA8QnJpYW4uSW5nbGlzQFN5c3RlbWF0aWNTdy5hYi5jYT6IlgQTFggA PhYhBMM5/lbU970GBS2bZB62lxu92I8YBQJeinHzAhsDBQkJZgGABQsJCAcCBhUKCQgLAgQW AgMBAh4BAheAAAoJEB62lxu92I8Y0ioBAI8xrggNxziAVmr+Xm6nnyjoujMqWcq3oEhlYGAO WacZAQDFtdDx2koSVSoOmfaOyRTbIWSf9/Cjai29060fsmdsDLg4BF6KcfMSCisGAQQBl1UB BQEBB0Awv8kHI2PaEgViDqzbnoe8B9KMHoBZLS92HdC7ZPh8HQMBCAeIfgQYFggAJhYhBMM5 /lbU970GBS2bZB62lxu92I8YBQJeinHzAhsMBQkJZgGAAAoJEB62lxu92I8YZwUBAJw/74rF IyaSsGI7ewCdCy88Lce/kdwX7zGwid+f8NZ3AQC/ezTFFi5obXnyMxZJN464nPXiggtT9gN5 RSyTY8X+AQ== Organization: Systematic Software Message-ID: <8a6a9c60-5c8a-a322-0b5e-2210be28e670@SystematicSw.ab.ca> Date: Sun, 6 Sep 2020 19:11:19 -0600 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0 MIME-Version: 1.0 In-Reply-To: <20200906230010.GD19595@tik.uni-stuttgart.de> Content-Language: en-CA X-CMAE-Envelope: MS4wfDqY+83nlO5mbkJArA/mqFHi1RGyqed23d1P1LH6FS95XOje9PqcCrnqMVdMzIlLGw0h91FRW0Eu/Yu7856bA9tEGAKfpR4CMuSFqxzpRd/wU/klzW09 3JkVblXoGGndOfcui560qGm8TTgvQsdG28wgW+BPZ6nVsrln/8mDxrun5lE/RynUYNuVmyslJcJsRQ== X-Spam-Status: No, score=-8.1 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS, KAM_EXEURI, KAM_LAZY_DOMAIN_SECURITY, NICE_REPLY_A, RCVD_IN_DNSWL_LOW, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=ham 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 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: cygwin AT cygwin DOT com Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: cygwin-bounces AT cygwin DOT com Sender: "Cygwin" On 2020-09-06 17:00, Ulli Horlacher wrote: > On Sun 2020-09-06 (16:27), Brian Inglis wrote: >> On 2020-09-06 16:11, Ulli Horlacher wrote: >>> I need an UNIX-alike update shell script, without clicky-pointy. Is this >>> a correct way: apt-cyg update-setup apt-cyg update apt-cyg dist-upgrade >>> ? I have testet it that way and it LOOKS ok, but maybe I am missing >>> something? >> >> Whose fork of apt-cyg are you using? > > Ooops... there are different versions (forks)? > > I am using https://github.com/kou1okada/apt-cyg from > cygwin-portable-installer : > > W10dev:~: apt-cyg --version > kou1okada/apt-cyg forked from transcode-open/apt-cyg > >> Please read those instructions carefully, or check the source. > > 2558 lines of bash script... :-} > >> Most do not support upgrading packages as they cannot upgrade the core >> packages. Please look for articles about running the Cygwin Setup program >> unattended. > > I have tried this first: > > 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 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. 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. 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. -- Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada This email may be disturbing to some readers as it contains too much technical detail. Reader discretion is advised. [Data in IEC units and prefixes, physical quantities in SI.] -- 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