* How to reinstall everything? @ 2020-06-26 17:47 Eliot Moss 2020-06-26 18:06 ` marco atzeri 2020-06-26 18:17 ` Brian Inglis 0 siblings, 2 replies; 20+ messages in thread From: Eliot Moss @ 2020-06-26 17:47 UTC (permalink / raw) To: cygwin Dear cygwin-ers -- I've moved to new computer and want to install the same packages I had before. Is there a way to tell setup from the command line to re-install all packages from my local package directory? (Things are mostly installed, but not working entirely properly, and it is tedious to go through an mouse-click every item to "Reinstall"!) Regards - Eliot Moss ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: How to reinstall everything? 2020-06-26 17:47 How to reinstall everything? Eliot Moss @ 2020-06-26 18:06 ` marco atzeri 2020-06-26 18:17 ` Brian Inglis 1 sibling, 0 replies; 20+ messages in thread From: marco atzeri @ 2020-06-26 18:06 UTC (permalink / raw) To: moss; +Cc: cygwin On Fri, 26 Jun 2020, 19:48 Eliot Moss, <moss@cs.umass.edu> wrote: > Dear cygwin-ers -- I've moved to new computer and want to install the same > packages I had before. > Is there a way to tell setup from the command line to re-install all > packages from my local package > directory? (Things are mostly installed, but not working entirely > properly, and it is tedious to go > through an mouse-click every item to "Reinstall"!) > > Regards - Eliot Moss > Some time ago I put a script here: https://stackoverflow.com/questions/46829532/cygwin-save-package-selections-for-later-reinstall Regards Marco ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: How to reinstall everything? 2020-06-26 17:47 How to reinstall everything? Eliot Moss 2020-06-26 18:06 ` marco atzeri @ 2020-06-26 18:17 ` Brian Inglis 2020-06-27 17:39 ` Brian Inglis 1 sibling, 1 reply; 20+ messages in thread From: Brian Inglis @ 2020-06-26 18:17 UTC (permalink / raw) To: cygwin On 2020-06-26 11:47, Eliot Moss wrote: > I've moved to new computer and want to install the same packages I had > before. Is there a way to tell setup from the command line to re-install all > packages from my local package directory? (Things are mostly installed, but > not working entirely properly, and it is tedious to go through an mouse-click > every item to "Reinstall"!) $ setup-x86/_64 -P "`ls .../*tp*%3a%2f%2f*%2f/*/release/ | sort -u`" where ... is the path to your local package directory, *tp*%3a%2f%2f*%2f should handle your download mirror directory, /*/ handles both noarch and x86/_64 architecture directories, release directory contains the package name directories, and sort -u eliminates duplicates in noarch and x86/_64 architecture directories. Don't forget to cp -r ~/.[a-z]*, modified /etc/ files, and rerun {,/usr}/{s,}bin/*config scripts. -- 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.] ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: How to reinstall everything? 2020-06-26 18:17 ` Brian Inglis @ 2020-06-27 17:39 ` Brian Inglis 0 siblings, 0 replies; 20+ messages in thread From: Brian Inglis @ 2020-06-27 17:39 UTC (permalink / raw) To: cygwin On 2020-06-26 12:17, Brian Inglis wrote: > On 2020-06-26 11:47, Eliot Moss wrote: >> I've moved to new computer and want to install the same packages I had >> before. Is there a way to tell setup from the command line to re-install all >> packages from my local package directory? (Things are mostly installed, but >> not working entirely properly, and it is tedious to go through an mouse-click >> every item to "Reinstall"!) > $ setup-x86/_64 -P "`ls .../*tp*%3a%2f%2f*%2f/*/release/ | sort -u`" The previous command may miss some packages that are components of other packages, so below are commands which produce complete lists: installed packages: $ awk '3 == NF {print $1}' /etc/setup/installed.db $ sed '1d;/\s[01]$/s/\s.*$//' /etc/setup/installed.db package directories: $ find <local package directory>/*tp*%3a%2f%2f*%2f/*/release/*/ -type d | \ sed 's!/$!!;s!^.*/!!' | sort -u but this may include some non-packages, as would similar approaches. > where ... is the path to your local package directory, *tp*%3a%2f%2f*%2f should > handle your download mirror directory, /*/ handles both noarch and x86/_64 > architecture directories, release directory contains the package name > directories, and sort -u eliminates duplicates in noarch and x86/_64 > architecture directories. > > Don't forget to cp -r ~/.[a-z]*, modified /etc/ files, and rerun > {,/usr}/{s,}bin/*config scripts. -- 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.] ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: How to reinstall everything? @ 2021-01-16 19:55 Hamish McIntyre-Bhatty 2021-01-16 21:02 ` Marco Atzeri 0 siblings, 1 reply; 20+ messages in thread From: Hamish McIntyre-Bhatty @ 2021-01-16 19:55 UTC (permalink / raw) To: Cygwin General Mailing List [-- Attachment #1.1.1: Type: text/plain, Size: 481 bytes --] In reply to Marco Atzeri: """ Some time ago I put a script here: https://stackoverflow.com/questions/46829532/cygwin-save-package-selections-for-later-reinstall """ This has been very useful for me. Is this in a git/other repository somewhere? If not, I think it might aid discovery for it to go with some other useful scripts in this repository: https://github.com/michaelgchu/Cygwin_Specific_Repo. What do you think of this idea Marco? Hamish McIntyre-Bhatty [-- Attachment #1.1.2: 0x87B761FE07F548D6.asc --] [-- Type: application/pgp-keys, Size: 3235 bytes --] [-- Attachment #2: OpenPGP digital signature --] [-- Type: application/pgp-signature, Size: 833 bytes --] ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: How to reinstall everything? 2021-01-16 19:55 Hamish McIntyre-Bhatty @ 2021-01-16 21:02 ` Marco Atzeri 2021-01-16 21:59 ` Hamish McIntyre-Bhatty ` (2 more replies) 0 siblings, 3 replies; 20+ messages in thread From: Marco Atzeri @ 2021-01-16 21:02 UTC (permalink / raw) To: cygwin [-- Attachment #1: Type: text/plain, Size: 1174 bytes --] On 16.01.2021 20:55, Hamish McIntyre-Bhatty via Cygwin wrote: > In reply to Marco Atzeri: > > """ > Some time ago I put a script here: > https://stackoverflow.com/questions/46829532/cygwin-save-package-selections-for-later-reinstall > > """ > > This has been very useful for me. Is this in a git/other repository somewhere? If not, I think it might aid discovery for it to go with some other useful scripts in this repository: https://github.com/michaelgchu/Cygwin_Specific_Repo. > > What do you think of this idea Marco? > > Hamish McIntyre-Bhatty > feel free to use it. I never store anywhere other than stackoverflow. Attached the current version, I don't rememeber if I changed it in the meantime. Attached another that you can find useful it uses cygcheck and binutils to provide the list of first level packages containing the needed DLL's $ cyg-dependency.sh /usr/bin/octave-5.2.0.exe /usr/bin/cygwin1.dll => cygwin-3.1.7-1 /usr/bin/cygX11-6.dll => libX11_6-1.7.0-1 /usr/bin/cyggcc_s-seh-1.dll => libgcc1-10.2.0-1 /usr/bin/cygstdc++-6.dll => libstdc++6-10.2.0-1 KERNEL32.dll => Windows System I found useful to avoid some screwup Regards Marco [-- Attachment #2: cyg-reinstall.sh --] [-- Type: text/plain, Size: 1502 bytes --] #!/bin/bash # Create a batch file to reinstall using setup-{ARCH}.exe # all packages or the ones reported as incomplete print_error=1 if [ $# -eq 1 ] then if [ $1 == "-I" ] then lista=$(mktemp) cygcheck -c | grep "Incomplete" > $lista print_error=0 fi if [ $1 == "-A" ] then lista=$(mktemp) cygcheck -cd | sed -e "1,2d" > $lista print_error=0 fi fi if [ $# -eq 2 ] then if [ $1 == "-f" ] then lista=$2 print_error=0 fi fi # error message if options are incorrect. if [ $print_error -eq 1 ] then echo -n "Usage : " $(basename $0) echo " [ -A | -I | -f filelist ]" echo " create cyg-reinstall-{ARC}.bat from" echo " options" echo " -A : All packages as reported by cygcheck" echo " -I : incomplete packages as reported by cygcheck" echo " -f : packages in filelist (one per row)" exit 1 fi if [ $(arch) == "x86_64" ] then A="x86_64" else A="x86" fi # writing header echo -n -e "setup-${A}.exe " > cyg-reinstall-${A}.bat # option -x remove and -P install # for re-install packages we need both if [ $1 == "-I" ] then awk 'BEGIN{printf(" -x ")} NR==1{printf $1}{printf ",%s", $1}' ${lista} >> cyg-reinstall-${A}.bat fi awk 'BEGIN{printf(" -P ")} NR==1{printf $1}{printf ",%s", $1} END { printf "\r\n pause "}' ${lista} >> cyg-reinstall-${A}.bat # execution permission for the script chmod +x cyg-reinstall-${A}.bat [-- Attachment #3: cyg-dependency.sh --] [-- Type: text/plain, Size: 1039 bytes --] #!/bin/bash if [ $# -ne 1 ] then echo "Usage : " $0 "file_name" echo "Find package dependency from dll dependency" exit 1 fi a=1 # mypath=$(echo $PATH | tr ":" " ") mypath="/usr/bin /usr/lib/lapack" windir=$(cygpath -u ${WINDIR})"/System32" for i in $(objdump -x $1 |grep "DLL Name:" |sed -e "s/\tDLL Name: //g"| tr "\r" " " ) do if [ $i = "KERNEL32.dll" ] then echo -n $i echo -n " => " echo " Windows System" else fullname=$(find ${mypath} -maxdepth 1 -name $i) if [ -z "${fullname}" ] then fullname=$(find ${windir} -maxdepth 1 -iname $i) if [ -z "${fullname}" ] then echo -n $i echo " => NOT on PATH, Unknown" else echo -n $i echo -n " => " echo " Windows System" fi else echo -n $fullname echo -n " => " package=$(cygcheck -f $fullname ) if [ -z "$package" ] then echo "NOT on ANY Package (system one?)" else echo $package fi fi fi done ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: How to reinstall everything? 2021-01-16 21:02 ` Marco Atzeri @ 2021-01-16 21:59 ` Hamish McIntyre-Bhatty 2021-01-21 16:00 ` Hamish McIntyre-Bhatty 2021-01-17 18:23 ` matthew patton 2021-02-04 14:21 ` Hamish McIntyre-Bhatty 2 siblings, 1 reply; 20+ messages in thread From: Hamish McIntyre-Bhatty @ 2021-01-16 21:59 UTC (permalink / raw) To: cygwin [-- Attachment #1.1.1: Type: text/plain, Size: 1702 bytes --] Cheers. I'll ask for these to be added to that repository and have them attributed to you. Any particular license? Hamish On 16/01/2021 21:02, Marco Atzeri via Cygwin wrote: > On 16.01.2021 20:55, Hamish McIntyre-Bhatty via Cygwin wrote: >> In reply to Marco Atzeri: >> >> """ >> Some time ago I put a script here: >> https://stackoverflow.com/questions/46829532/cygwin-save-package-selections-for-later-reinstall >> >> >> """ >> >> This has been very useful for me. Is this in a git/other repository >> somewhere? If not, I think it might aid discovery for it to go with >> some other useful scripts in this repository: >> https://github.com/michaelgchu/Cygwin_Specific_Repo. >> >> What do you think of this idea Marco? >> >> Hamish McIntyre-Bhatty >> > > feel free to use it. I never store anywhere other than stackoverflow. > Attached the current version, I don't rememeber if I changed > it in the meantime. > > Attached another that you can find useful > it uses cygcheck and binutils to provide the list of first level > packages containing the needed DLL's > > $ cyg-dependency.sh /usr/bin/octave-5.2.0.exe > /usr/bin/cygwin1.dll => cygwin-3.1.7-1 > /usr/bin/cygX11-6.dll => libX11_6-1.7.0-1 > /usr/bin/cyggcc_s-seh-1.dll => libgcc1-10.2.0-1 > /usr/bin/cygstdc++-6.dll => libstdc++6-10.2.0-1 > KERNEL32.dll => Windows System > > I found useful to avoid some screwup > > Regards > Marco > > > -- > 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 [-- Attachment #1.1.2: 0x87B761FE07F548D6.asc --] [-- Type: application/pgp-keys, Size: 3235 bytes --] [-- Attachment #2: OpenPGP digital signature --] [-- Type: application/pgp-signature, Size: 833 bytes --] ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: How to reinstall everything? 2021-01-16 21:59 ` Hamish McIntyre-Bhatty @ 2021-01-21 16:00 ` Hamish McIntyre-Bhatty 2021-01-21 16:24 ` Marco Atzeri 0 siblings, 1 reply; 20+ messages in thread From: Hamish McIntyre-Bhatty @ 2021-01-21 16:00 UTC (permalink / raw) To: cygwin [-- Attachment #1.1.1: Type: text/plain, Size: 1553 bytes --] On 16/01/2021 21:02, Marco Atzeri via Cygwin wrote: >> On 16.01.2021 20:55, Hamish McIntyre-Bhatty via Cygwin wrote: >>> In reply to Marco Atzeri: >>> >>> """ >>> Some time ago I put a script here: >>> https://stackoverflow.com/questions/46829532/cygwin-save-package-selections-for-later-reinstall >>> >>> >>> """ >>> >>> This has been very useful for me. Is this in a git/other repository >>> somewhere? If not, I think it might aid discovery for it to go with >>> some other useful scripts in this repository: >>> https://github.com/michaelgchu/Cygwin_Specific_Repo. >>> >>> What do you think of this idea Marco? >>> >>> Hamish McIntyre-Bhatty >>> >> feel free to use it. I never store anywhere other than stackoverflow. >> Attached the current version, I don't rememeber if I changed >> it in the meantime. >> >> Attached another that you can find useful >> it uses cygcheck and binutils to provide the list of first level >> packages containing the needed DLL's >> >> $ cyg-dependency.sh /usr/bin/octave-5.2.0.exe >> /usr/bin/cygwin1.dll => cygwin-3.1.7-1 >> /usr/bin/cygX11-6.dll => libX11_6-1.7.0-1 >> /usr/bin/cyggcc_s-seh-1.dll => libgcc1-10.2.0-1 >> /usr/bin/cygstdc++-6.dll => libstdc++6-10.2.0-1 >> KERNEL32.dll => Windows System >> >> I found useful to avoid some screwup >> >> Regards >> Marco Bumping in case you didn't see my follow up query Marco: What license are these available under? Obviously I'll attribute them to you if they make it into that repo. Hamish [-- Attachment #1.1.2: 0x87B761FE07F548D6.asc --] [-- Type: application/pgp-keys, Size: 3235 bytes --] [-- Attachment #2: OpenPGP digital signature --] [-- Type: application/pgp-signature, Size: 833 bytes --] ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: How to reinstall everything? 2021-01-21 16:00 ` Hamish McIntyre-Bhatty @ 2021-01-21 16:24 ` Marco Atzeri 2021-01-21 16:25 ` Hamish McIntyre-Bhatty 0 siblings, 1 reply; 20+ messages in thread From: Marco Atzeri @ 2021-01-21 16:24 UTC (permalink / raw) To: cygwin On 21.01.2021 17:00, Hamish McIntyre-Bhatty via Cygwin wrote: > On 16/01/2021 21:02, Marco Atzeri via Cygwin wrote: >>> On 16.01.2021 20:55, Hamish McIntyre-Bhatty via Cygwin wrote: >>>> In reply to Marco Atzeri: > > Bumping in case you didn't see my follow up query Marco: > > What license are these available under? Obviously I'll attribute them to > you if they make it into that repo. > > Hamish > BSD license is fine ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: How to reinstall everything? 2021-01-21 16:24 ` Marco Atzeri @ 2021-01-21 16:25 ` Hamish McIntyre-Bhatty 0 siblings, 0 replies; 20+ messages in thread From: Hamish McIntyre-Bhatty @ 2021-01-21 16:25 UTC (permalink / raw) To: cygwin [-- Attachment #1.1.1: Type: text/plain, Size: 530 bytes --] On 21/01/2021 16:24, Marco Atzeri via Cygwin wrote: > On 21.01.2021 17:00, Hamish McIntyre-Bhatty via Cygwin wrote: >> On 16/01/2021 21:02, Marco Atzeri via Cygwin wrote: >>>> On 16.01.2021 20:55, Hamish McIntyre-Bhatty via Cygwin wrote: >>>>> In reply to Marco Atzeri: > >> >> Bumping in case you didn't see my follow up query Marco: >> >> What license are these available under? Obviously I'll attribute them to >> you if they make it into that repo. >> >> Hamish >> > > BSD license is fine > Okay thanks :) [-- Attachment #1.1.2: 0x87B761FE07F548D6.asc --] [-- Type: application/pgp-keys, Size: 3235 bytes --] [-- Attachment #2: OpenPGP digital signature --] [-- Type: application/pgp-signature, Size: 833 bytes --] ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: How to reinstall everything? 2021-01-16 21:02 ` Marco Atzeri 2021-01-16 21:59 ` Hamish McIntyre-Bhatty @ 2021-01-17 18:23 ` matthew patton 2021-01-17 19:32 ` Brian Inglis ` (3 more replies) 2021-02-04 14:21 ` Hamish McIntyre-Bhatty 2 siblings, 4 replies; 20+ messages in thread From: matthew patton @ 2021-01-17 18:23 UTC (permalink / raw) To: cygwin can we fix setup.exe to read STDIN with '-P', like so? echo 'pkg1,pkg2,pkg3' | setup.exe -P - and even more useful if the argument can be space delimited.setup.exe -P pkg1 pkg2 pkg3or if that's too muchsetup.exe -P pkg1 -P pkg2 -P pkg3 ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: How to reinstall everything? 2021-01-17 18:23 ` matthew patton @ 2021-01-17 19:32 ` Brian Inglis 2021-01-17 19:44 ` Achim Gratz ` (2 subsequent siblings) 3 siblings, 0 replies; 20+ messages in thread From: Brian Inglis @ 2021-01-17 19:32 UTC (permalink / raw) To: cygwin On 2021-01-17 11:23, matthew patton via Cygwin wrote: > can we fix setup.exe to read STDIN with '-P', like so? > $ echo 'pkg1,pkg2,pkg3' | setup.exe -P - > and even more useful if the argument can be space delimited. > $ setup.exe -P pkg1 pkg2 pkg3 > or if that's too much > $ setup.exe -P pkg1 -P pkg2 -P pkg3 "Use the shell and utilities, Luke!" - prefixed echo to setup.exe for demo: $ echo setup.exe -P `echo a,b,c` setup.exe -P a,b,c $ echo setup.exe -P $(echo a,b,c) setup.exe -P a,b,c $ echo a,b,c | xargs echo setup.exe -P setup.exe -P a,b,c $ cat file a b c $ paste -d, -s file | xargs echo setup.exe -P setup.exe -P a,b,c $ man dash $ man bash $ cygstart /usr/share/doc/bash/html/bash.html $ cygstart /usr/share/doc/bash/html/bashref.html $ man xargs -- 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 binary units and prefixes, physical quantities in SI.] ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: How to reinstall everything? 2021-01-17 18:23 ` matthew patton 2021-01-17 19:32 ` Brian Inglis @ 2021-01-17 19:44 ` Achim Gratz 2021-01-17 20:53 ` matthew patton 2021-01-17 20:10 ` Hans-Bernhard Bröker 2021-01-21 17:44 ` Bill Stewart 3 siblings, 1 reply; 20+ messages in thread From: Achim Gratz @ 2021-01-17 19:44 UTC (permalink / raw) To: cygwin matthew patton via Cygwin writes: > can we fix setup.exe to read STDIN with '-P', like so? > echo 'pkg1,pkg2,pkg3' | setup.exe -P - You probably forgot that setup is a Windows program. besides, you must not start it from the Cygwin that you are about to install a package into. Regards, Achim. -- +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+ Factory and User Sound Singles for Waldorf rackAttack: http://Synth.Stromeko.net/Downloads.html#WaldorfSounds ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: How to reinstall everything? 2021-01-17 19:44 ` Achim Gratz @ 2021-01-17 20:53 ` matthew patton 2021-01-18 22:48 ` Brian Inglis 0 siblings, 1 reply; 20+ messages in thread From: matthew patton @ 2021-01-17 20:53 UTC (permalink / raw) To: cygwin On Sunday, January 17, 2021, 02:44:37 PM EST, Achim Gratz <stromeko@nexgo.de> wrote: >matthew patton via Cygwin writes: >> can we fix setup.exe to read STDIN with '-P', like so? >> echo 'pkg1,pkg2,pkg3' | setup.exe -P - > You probably forgot that setup is a Windows program. besides, you must > not start it from the Cygwin that you are about to install a package into. so Windows programs can't be written to read from STDIN? I can't think of any Unix utility that uses commas to delimit. And any Windows one that uses commas is clearly improper/wrong was well. If "you're not supposed to invoke setup.exe from within cygwin" were true then all the 'xargs' and 'paste' workarounds are null and void. And no, I don't automatically reach for xargs to bandaid around poorly written programs that violate 50 years of convention. ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: How to reinstall everything? 2021-01-17 20:53 ` matthew patton @ 2021-01-18 22:48 ` Brian Inglis 0 siblings, 0 replies; 20+ messages in thread From: Brian Inglis @ 2021-01-18 22:48 UTC (permalink / raw) To: cygwin On 2021-01-17 13:53, matthew patton via Cygwin wrote: > On Sunday, January 17, 2021, 02:44:37 PM EST, Achim Gratz wrote: >>matthew patton via Cygwin writes: >>> can we fix setup.exe to read STDIN with '-P', like so? >>> echo 'pkg1,pkg2,pkg3' | setup.exe -P - > >> You probably forgot that setup is a Windows program. besides, you must >> not start it from the Cygwin that you are about to install a package into. For years I've run Cygwin Setup from a script that: * checks if a new version gets downloaded and verifies it; * downloads and verifies setup.ini, checking if my nearby mirror is up and up to date; * starts Task Scheduler to allow me to run elevated shut down tasks for old cron processes, Cygwin services, remaining detached processes; * starts Task Manager/Details/order by Image Path to check all processes are gone and allow me to deal with any left; * starts Cygwin Setup with my setup.rc parameters and any new packages to install; * kills off interactive mintty, console and pty X, bash, and its own process. > so Windows programs can't be written to read from STDIN? I can't think of any Unix utility that uses commas to delimit. And any Windows one that uses commas is clearly improper/wrong as well. > If "you're not supposed to invoke setup.exe from within cygwin" were true then all the 'xargs' and 'paste' workarounds are null and void. And no, I don't automatically reach for xargs to bandaid around poorly written programs that violate 50 years of convention. It's a Windows program with 20 years of its own history built with no proprietary tools! You can change it. Remember it was only recently that Windows gained support for quoted command line and long args, so work arounds to allow running with argument lists from command.com and .bat scripts were required, and have been retained for compatibility with downstream usages. Window utilities with similar requirements have each added their own unique option handling quirks to deal with them e.g. > sc <system> <command> <param>= <value>... -- 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 binary units and prefixes, physical quantities in SI.] ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: How to reinstall everything? 2021-01-17 18:23 ` matthew patton 2021-01-17 19:32 ` Brian Inglis 2021-01-17 19:44 ` Achim Gratz @ 2021-01-17 20:10 ` Hans-Bernhard Bröker 2021-01-21 17:44 ` Bill Stewart 3 siblings, 0 replies; 20+ messages in thread From: Hans-Bernhard Bröker @ 2021-01-17 20:10 UTC (permalink / raw) To: cygwin Am 17.01.2021 um 19:23 schrieb matthew patton via Cygwin: > can we fix setup.exe to read STDIN with '-P', like so? To fix something, it has to be broken first. I don't see that being the case here. > echo 'pkg1,pkg2,pkg3' | setup.exe -P - I don't see that in any way easier or more helpful than setup -P pkg1,pkg2,pkg3 which, IIRc, already works. ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: How to reinstall everything? 2021-01-17 18:23 ` matthew patton ` (2 preceding siblings ...) 2021-01-17 20:10 ` Hans-Bernhard Bröker @ 2021-01-21 17:44 ` Bill Stewart 3 siblings, 0 replies; 20+ messages in thread From: Bill Stewart @ 2021-01-21 17:44 UTC (permalink / raw) To: cygwin On Sun, Jan 17, 2021 at 11:23 AM matthew patton wrote: > can we fix setup.exe to read STDIN with '-P', like so? > echo 'pkg1,pkg2,pkg3' | setup.exe -P - What problem does this solve for you? PowerShell example, if you're not familiar: $packages = 'pkg1','pkg2','pkg3' setup -P ($packages -join ',') Or even this: setup -P ((Get-Content packages.txt) -join ',') Bill ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: How to reinstall everything? 2021-01-16 21:02 ` Marco Atzeri 2021-01-16 21:59 ` Hamish McIntyre-Bhatty 2021-01-17 18:23 ` matthew patton @ 2021-02-04 14:21 ` Hamish McIntyre-Bhatty 2021-02-04 15:24 ` Marco Atzeri 2 siblings, 1 reply; 20+ messages in thread From: Hamish McIntyre-Bhatty @ 2021-02-04 14:21 UTC (permalink / raw) To: cygwin [-- Attachment #1.1.1: Type: text/plain, Size: 1465 bytes --] On 16/01/2021 21:02, Marco Atzeri via Cygwin wrote: > On 16.01.2021 20:55, Hamish McIntyre-Bhatty via Cygwin wrote: >> In reply to Marco Atzeri: >> >> """ >> Some time ago I put a script here: >> https://stackoverflow.com/questions/46829532/cygwin-save-package-selections-for-later-reinstall >> >> >> """ >> >> This has been very useful for me. Is this in a git/other repository >> somewhere? If not, I think it might aid discovery for it to go with >> some other useful scripts in this repository: >> https://github.com/michaelgchu/Cygwin_Specific_Repo. >> >> What do you think of this idea Marco? >> >> Hamish McIntyre-Bhatty >> > > feel free to use it. I never store anywhere other than stackoverflow. > Attached the current version, I don't rememeber if I changed > it in the meantime. > > Attached another that you can find useful > it uses cygcheck and binutils to provide the list of first level > packages containing the needed DLL's > > $ cyg-dependency.sh /usr/bin/octave-5.2.0.exe > /usr/bin/cygwin1.dll => cygwin-3.1.7-1 > /usr/bin/cygX11-6.dll => libX11_6-1.7.0-1 > /usr/bin/cyggcc_s-seh-1.dll => libgcc1-10.2.0-1 > /usr/bin/cygstdc++-6.dll => libstdc++6-10.2.0-1 > KERNEL32.dll => Windows System > > I found useful to avoid some screwup > > Regards > Marco Thanks Marco. All done, attributed to you under BSD and available at https://gitlab.com/hamishmb/cygwin-scripts. Hamish [-- Attachment #1.1.2: 0x87B761FE07F548D6.asc --] [-- Type: application/pgp-keys, Size: 3235 bytes --] [-- Attachment #2: OpenPGP digital signature --] [-- Type: application/pgp-signature, Size: 833 bytes --] ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: How to reinstall everything? 2021-02-04 14:21 ` Hamish McIntyre-Bhatty @ 2021-02-04 15:24 ` Marco Atzeri 2021-02-04 15:25 ` Hamish McIntyre-Bhatty 0 siblings, 1 reply; 20+ messages in thread From: Marco Atzeri @ 2021-02-04 15:24 UTC (permalink / raw) To: cygwin In 04.02.2021 15:21, Hamish McIntyre-Bhatty via Cygwin wrote: > > Thanks Marco. > > All done, attributed to you under BSD and available at > https://gitlab.com/hamishmb/cygwin-scripts. > > Hamish > Hi Hamish I see 404 error, maybe it has private setting ? Regards Marco ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: How to reinstall everything? 2021-02-04 15:24 ` Marco Atzeri @ 2021-02-04 15:25 ` Hamish McIntyre-Bhatty 0 siblings, 0 replies; 20+ messages in thread From: Hamish McIntyre-Bhatty @ 2021-02-04 15:25 UTC (permalink / raw) To: cygwin [-- Attachment #1.1.1: Type: text/plain, Size: 413 bytes --] On 04/02/2021 15:24, Marco Atzeri via Cygwin wrote: > In 04.02.2021 15:21, Hamish McIntyre-Bhatty via Cygwin wrote: > >> >> Thanks Marco. >> >> All done, attributed to you under BSD and available at >> https://gitlab.com/hamishmb/cygwin-scripts. >> >> Hamish >> > > Hi Hamish > I see 404 error, maybe it has private setting ? > > Regards > Marco Yeah, my mistake. Should work now. Hamish [-- Attachment #1.1.2: 0x87B761FE07F548D6.asc --] [-- Type: application/pgp-keys, Size: 3235 bytes --] [-- Attachment #2: OpenPGP digital signature --] [-- Type: application/pgp-signature, Size: 833 bytes --] ^ permalink raw reply [flat|nested] 20+ messages in thread
end of thread, other threads:[~2021-02-04 15:25 UTC | newest] Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2020-06-26 17:47 How to reinstall everything? Eliot Moss 2020-06-26 18:06 ` marco atzeri 2020-06-26 18:17 ` Brian Inglis 2020-06-27 17:39 ` Brian Inglis 2021-01-16 19:55 Hamish McIntyre-Bhatty 2021-01-16 21:02 ` Marco Atzeri 2021-01-16 21:59 ` Hamish McIntyre-Bhatty 2021-01-21 16:00 ` Hamish McIntyre-Bhatty 2021-01-21 16:24 ` Marco Atzeri 2021-01-21 16:25 ` Hamish McIntyre-Bhatty 2021-01-17 18:23 ` matthew patton 2021-01-17 19:32 ` Brian Inglis 2021-01-17 19:44 ` Achim Gratz 2021-01-17 20:53 ` matthew patton 2021-01-18 22:48 ` Brian Inglis 2021-01-17 20:10 ` Hans-Bernhard Bröker 2021-01-21 17:44 ` Bill Stewart 2021-02-04 14:21 ` Hamish McIntyre-Bhatty 2021-02-04 15:24 ` Marco Atzeri 2021-02-04 15:25 ` Hamish McIntyre-Bhatty
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).