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