Re: How to reinstall everything?

2021-02-04 Thread Hamish McIntyre-Bhatty via Cygwin
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



0x87B761FE07F548D6.asc
Description: application/pgp-keys


signature.asc
Description: OpenPGP digital signature
--
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


Re: How to reinstall everything?

2021-02-04 Thread Marco Atzeri via 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

--
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


Re: How to reinstall everything?

2021-02-04 Thread Hamish McIntyre-Bhatty via Cygwin
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



0x87B761FE07F548D6.asc
Description: application/pgp-keys


signature.asc
Description: OpenPGP digital signature
--
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


Re: How to reinstall everything?

2021-01-21 Thread Bill Stewart
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
--
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


Re: How to reinstall everything?

2021-01-21 Thread Hamish McIntyre-Bhatty via Cygwin
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 :)


0x87B761FE07F548D6.asc
Description: application/pgp-keys


signature.asc
Description: OpenPGP digital signature
--
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


Re: How to reinstall everything?

2021-01-21 Thread Marco Atzeri via 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
--
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


Re: How to reinstall everything?

2021-01-21 Thread Hamish McIntyre-Bhatty via Cygwin
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



0x87B761FE07F548D6.asc
Description: application/pgp-keys


signature.asc
Description: OpenPGP digital signature
--
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


Re: How to reinstall everything?

2021-01-18 Thread Brian Inglis

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   = ...

--
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.]
--
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


Re: How to reinstall everything?

2021-01-17 Thread matthew patton via Cygwin
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.

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.
  
--
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


Re: How to reinstall everything?

2021-01-17 Thread Hans-Bernhard Bröker

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.
--
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


Re: How to reinstall everything?

2021-01-17 Thread Achim Gratz
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
--
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


Re: How to reinstall everything?

2021-01-17 Thread Brian Inglis

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.]
--
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


Re: How to reinstall everything?

2021-01-17 Thread matthew patton via 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
--
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


Re: How to reinstall everything?

2021-01-16 Thread Hamish McIntyre-Bhatty via Cygwin
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


0x87B761FE07F548D6.asc
Description: application/pgp-keys


signature.asc
Description: OpenPGP digital signature
--
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


Re: How to reinstall everything?

2021-01-16 Thread Marco Atzeri via Cygwin

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

#!/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

#!/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


--
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


Re: How to reinstall everything?

2021-01-16 Thread Hamish McIntyre-Bhatty via Cygwin
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



0x87B761FE07F548D6.asc
Description: application/pgp-keys


signature.asc
Description: OpenPGP digital signature
--
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


Re: How to reinstall everything?

2020-06-27 Thread Brian Inglis
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 /*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.]
--
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


Re: How to reinstall everything?

2020-06-26 Thread Brian Inglis
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.]
--
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


Re: How to reinstall everything?

2020-06-26 Thread marco atzeri via Cygwin
On Fri, 26 Jun 2020, 19:48 Eliot Moss,  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
--
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


How to reinstall everything?

2020-06-26 Thread Eliot Moss
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
--
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