public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Is there a way to clone-install Cygwin?
@ 2020-01-21  0:58 Lavrentiev, Anton (NIH/NLM/NCBI) [C] via cygwin
  2020-01-21  1:27 ` Brent Epp
                   ` (4 more replies)
  0 siblings, 5 replies; 23+ messages in thread
From: Lavrentiev, Anton (NIH/NLM/NCBI) [C] via cygwin @ 2020-01-21  0:58 UTC (permalink / raw)
  To: 'cygwin@cygwin.com'

Hi List,

I have a question, is there a way to clone-install Cygwin?

Like I have installed whatever packages I selected on some PC, then maintained that installation for a while,
doing upgrades etc.  Now I need to install the exact same set on another PC.  Can I pull up a list and use it
in a sort of a batch install with setup.exe?  I want to avoid to dumb-copy the entire C:\cygwin tree from one PC to another,
rather use a semi-automatic install procedure from scratch, if possible, using the list of packages that I need.

Thanks for all the insights you can provide.

Cheers,
Anton


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: Is there a way to clone-install Cygwin?
  2020-01-21  0:58 Is there a way to clone-install Cygwin? Lavrentiev, Anton (NIH/NLM/NCBI) [C] via cygwin
@ 2020-01-21  1:27 ` Brent Epp
  2020-01-31 10:25   ` Ulli Horlacher
       [not found] ` <16fc5b08e80.2780.a1382e26d1292f71ec6ef0cd03d49346@pdc.ca>
                   ` (3 subsequent siblings)
  4 siblings, 1 reply; 23+ messages in thread
From: Brent Epp @ 2020-01-21  1:27 UTC (permalink / raw)
  To: 'cygwin@cygwin.com'

Sorry, this reply was meant to go the list but I was using a different mail 
client and it replied directly.
______________________

Cygwin is totally portable! You can simply copy the installation folder to 
another PC, copy the shortcut (edit target if needed) and it will work. 
I've done this numerous times for this exact reason.

You may also want to copy the package directory and setup log if you want 
to update the installation on the clone. 

Cheers
  - Brent 





On January 20, 2020 18:59:09 "Lavrentiev, Anton (NIH/NLM/NCBI) [C] via 
cygwin" <cygwin@cygwin.com> wrote:

> Hi List,
>
> I have a question, is there a way to clone-install Cygwin?
>
> Like I have installed whatever packages I selected on some PC, then 
> maintained that installation for a while,
> doing upgrades etc.  Now I need to install the exact same set on another 
> PC.  Can I pull up a list and use it
> in a sort of a batch install with setup.exe?  I want to avoid to dumb-copy 
> the entire C:\cygwin tree from one PC to another,
> rather use a semi-automatic install procedure from scratch, if possible, 
> using the list of packages that I need.
>
> Thanks for all the insights you can provide.
>
> Cheers,
> Anton
>
>
> --
> Problem reports:       http://cygwin.com/problems.html
> FAQ:                   http://cygwin.com/faq/
> Documentation:         http://cygwin.com/docs.html
> Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
>



--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 23+ messages in thread

* RE: Is there a way to clone-install Cygwin?
       [not found] ` <16fc5b08e80.2780.a1382e26d1292f71ec6ef0cd03d49346@pdc.ca>
@ 2020-01-21  2:33   ` Lavrentiev, Anton (NIH/NLM/NCBI) [C] via cygwin
  2020-01-21  2:55     ` Brent Epp
  0 siblings, 1 reply; 23+ messages in thread
From: Lavrentiev, Anton (NIH/NLM/NCBI) [C] via cygwin @ 2020-01-21  2:33 UTC (permalink / raw)
  To: Brent Epp; +Cc: 'cygwin@cygwin.com'

> Cygwin is totally portable!

I wouldn't be so sure, as some package installation scripts do modify the actual system, which is not contained within the Cygwin installation tree.
But mostly it is indeed portable.

> You can simply copy the installation folder

If you think that didn't occur to me, then please read my original message that said:

> > I want to avoid to dumb-copy the entire C:\cygwin tree from one PC to another

Thank you for your time, though.

Anton



--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 23+ messages in thread

* RE: Is there a way to clone-install Cygwin?
  2020-01-21  2:33   ` Lavrentiev, Anton (NIH/NLM/NCBI) [C] via cygwin
@ 2020-01-21  2:55     ` Brent Epp
  0 siblings, 0 replies; 23+ messages in thread
From: Brent Epp @ 2020-01-21  2:55 UTC (permalink / raw)
  To: cygwin

Fair enough.  I don't think I've encountered any scripts that modify the 
system in my use of cygwin, so I didn't think of it.  You're correct, 
"mostly portable" is more accurate.


On January 20, 2020 20:33:22 "Lavrentiev, Anton (NIH/NLM/NCBI) [C] via 
cygwin" <cygwin@cygwin.com> wrote:

>> Cygwin is totally portable!
>
> I wouldn't be so sure, as some package installation scripts do modify the 
> actual system, which is not contained within the Cygwin installation tree.
> But mostly it is indeed portable.
>
>> You can simply copy the installation folder
>
> If you think that didn't occur to me, then please read my original message 
> that said:
>
>> > I want to avoid to dumb-copy the entire C:\cygwin tree from one PC to another
>
> Thank you for your time, though.
>
> Anton
>
>
>
> --
> Problem reports:       http://cygwin.com/problems.html
> FAQ:                   http://cygwin.com/faq/
> Documentation:         http://cygwin.com/docs.html
> Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
>



--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: Is there a way to clone-install Cygwin?
  2020-01-21  0:58 Is there a way to clone-install Cygwin? Lavrentiev, Anton (NIH/NLM/NCBI) [C] via cygwin
  2020-01-21  1:27 ` Brent Epp
       [not found] ` <16fc5b08e80.2780.a1382e26d1292f71ec6ef0cd03d49346@pdc.ca>
@ 2020-01-21  4:46 ` Marco Atzeri
  2020-01-21 20:33 ` Achim Gratz
  2020-01-28 21:35 ` Andrey Repin
  4 siblings, 0 replies; 23+ messages in thread
From: Marco Atzeri @ 2020-01-21  4:46 UTC (permalink / raw)
  To: cygwin

[-- Attachment #1: Type: text/plain, Size: 1343 bytes --]

Am 21.01.2020 um 01:58 schrieb Lavrentiev, Anton (NIH/NLM/NCBI) [C] via 
cygwin:
> Hi List,
> 
> I have a question, is there a way to clone-install Cygwin?
> 
> Like I have installed whatever packages I selected on some PC, then maintained that installation for a while,
> doing upgrades etc.  Now I need to install the exact same set on another PC.  Can I pull up a list and use it
> in a sort of a batch install with setup.exe?  I want to avoid to dumb-copy the entire C:\cygwin tree from one PC to another,
> rather use a semi-automatic install procedure from scratch, if possible, using the list of packages that I need.
> 
> Thanks for all the insights you can provide.
> 
> Cheers,
> Anton
> 

attached my solution to re-install or duplicate the packages of an 
existing installation.


$ ./cyg-reinstall.sh
Usage :  cyg-reinstall.sh [ -A | -I | -f filelist ]
   create cyg-reinstall-{ARC}.bat from
   options
     -A  :  All packages as reported by cygcheck
     -I  :  incomplete packages as reported by cygcheck
     -f  :  packages in filelist (one per row)

$ ./cyg-reinstall.sh -A

and the batch file is ready

$ ls -s cyg-reinstall-x86_64.bat
32K cyg-reinstall-x86_64.bat

$ head -c 100 cyg-reinstall-x86_64.bat
setup-x86_64.exe   -P 
_autorebase,_autorebase,_update-info-dir,a2ps,adobe-source-code-pro-fonts,adob

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: Type: text/plain, Size: 219 bytes --]


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: Is there a way to clone-install Cygwin?
  2020-01-21  0:58 Is there a way to clone-install Cygwin? Lavrentiev, Anton (NIH/NLM/NCBI) [C] via cygwin
                   ` (2 preceding siblings ...)
  2020-01-21  4:46 ` Marco Atzeri
@ 2020-01-21 20:33 ` Achim Gratz
  2020-01-28 21:35 ` Andrey Repin
  4 siblings, 0 replies; 23+ messages in thread
From: Achim Gratz @ 2020-01-21 20:33 UTC (permalink / raw)
  To: cygwin

Lavrentiev, Anton (NIH/NLM/NCBI) [C] via cygwin writes:
> I have a question, is there a way to clone-install Cygwin?

Multiple, but if you like to do it without any extra tools you'll have
to cheat a little.

> Like I have installed whatever packages I selected on some PC, then
> maintained that installation for a while, doing upgrades etc.  Now I
> need to install the exact same set on another PC.  Can I pull up a
> list and use it in a sort of a batch install with setup.exe?  I want
> to avoid to dumb-copy the entire C:\cygwin tree from one PC to
> another, rather use a semi-automatic install procedure from scratch,
> if possible, using the list of packages that I need.

One way to do that is to take /etc/setup/installed.db from the old
system an drop it to the same place in the new system, then run
setup.exe and "reinstall" all packages.  You'll have to re-do all
customization steps that wereN#t done as part of the installation
itself, but you seem to know that already.


Regards,
Achim.
-- 
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+

SD adaptations for KORG EX-800 and Poly-800MkII V0.9:
http://Synth.Stromeko.net/Downloads.html#KorgSDada

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: Is there a way to clone-install Cygwin?
  2020-01-21  0:58 Is there a way to clone-install Cygwin? Lavrentiev, Anton (NIH/NLM/NCBI) [C] via cygwin
                   ` (3 preceding siblings ...)
  2020-01-21 20:33 ` Achim Gratz
@ 2020-01-28 21:35 ` Andrey Repin
  2020-01-28 22:00   ` Lavrentiev, Anton (NIH/NLM/NCBI) [C] via cygwin
  4 siblings, 1 reply; 23+ messages in thread
From: Andrey Repin @ 2020-01-28 21:35 UTC (permalink / raw)
  To: Lavrentiev, Anton (NIH/NLM/NCBI) [C], cygwin

Greetings, Lavrentiev, Anton (NIH/NLM/NCBI) [C]!

> I have a question, is there a way to clone-install Cygwin?

> Like I have installed whatever packages I selected on some PC, then
> maintained that installation for a while, doing upgrades etc.  Now I need to
> install the exact same set on another PC.

> Can I pull up a list and use it in a sort of a batch install with setup.exe?
> I want to avoid to dumb-copy the entire C:\cygwin tree from one PC to another,
> rather use a semi-automatic install procedure from scratch, if possible,
> using the list of packages that I need.

> Thanks for all the insights you can provide.

Yes, this is possible. In two ways even.
The list you are looking for is, as has been mentioned,
/etc/setup/installed.db (you can `cut "-d " -f 1 < installed.db`), then you
could call setup.exe with necessary switches to install the set of packages
you want.
If you want to avoid downloading from external servers, you will have to move
your installation cache along with setup binary.


-- 
With best regards,
Andrey Repin
Wednesday, January 29, 2020 0:15:54

Sorry for my terrible english...


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 23+ messages in thread

* RE: Is there a way to clone-install Cygwin?
  2020-01-28 21:35 ` Andrey Repin
@ 2020-01-28 22:00   ` Lavrentiev, Anton (NIH/NLM/NCBI) [C] via cygwin
  0 siblings, 0 replies; 23+ messages in thread
From: Lavrentiev, Anton (NIH/NLM/NCBI) [C] via cygwin @ 2020-01-28 22:00 UTC (permalink / raw)
  To: cygwin

> Yes, this is possible.

Thank you.


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: Is there a way to clone-install Cygwin?
  2020-01-21  1:27 ` Brent Epp
@ 2020-01-31 10:25   ` Ulli Horlacher
  2020-01-31 11:29     ` Ulli Horlacher
  0 siblings, 1 reply; 23+ messages in thread
From: Ulli Horlacher @ 2020-01-31 10:25 UTC (permalink / raw)
  To: cygwin

On Mon 2020-01-20 (19:28), Brent Epp wrote:

> Cygwin is totally portable! You can simply copy the installation folder to 
> another PC, copy the shortcut (edit target if needed) and it will work. 

How do you copy it?
Which archive container do you use?

I have tried it with:

/: cat zip.bat
cd C:\
\7z\7za a -tzip -xr!cygwin64/home/* -xr!cygwin64/var/log/* tmp\cygwin64.zip cygwin64

But in resulting cygwin64.zip the directories /cygdrive /proc /usr/bin and /usr/lib are
missing, because they are mount points.

Next problem is: the file permissions will not be restored.


-- 
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:<16fc5b76c50.2780.a1382e26d1292f71ec6ef0cd03d49346@pdc.ca>

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: Is there a way to clone-install Cygwin?
  2020-01-31 10:25   ` Ulli Horlacher
@ 2020-01-31 11:29     ` Ulli Horlacher
  2020-01-31 12:05       ` Ulli Horlacher
  2020-01-31 12:54       ` Thomas Wolff
  0 siblings, 2 replies; 23+ messages in thread
From: Ulli Horlacher @ 2020-01-31 11:29 UTC (permalink / raw)
  To: cygwin

On Fri 2020-01-31 (11:24), Ulli Horlacher wrote:

> On Mon 2020-01-20 (19:28), Brent Epp wrote:
> 
> > Cygwin is totally portable! You can simply copy the installation folder to 
> > another PC, copy the shortcut (edit target if needed) and it will work. 
> 
> How do you copy it?
> Which archive container do you use?
> 
> I have tried it with:
> 
> /: cat zip.bat
> cd C:\
> \7z\7za a -tzip -xr!cygwin64/home/* -xr!cygwin64/var/log/* tmp\cygwin64.zip cygwin64
> 
> But in resulting cygwin64.zip the directories /cygdrive /proc /usr/bin and /usr/lib are
> missing, because they are mount points.

I have now extracted this cygwin64.zip on a second Windows host using the
Windows bsdtar
I have started a mintty with bash:

The missing mountpoint directories were created automagically :-)


> Next problem is: the file permissions will not be restored.

And all symbolic links have been extracted as regular files :-(


-- 
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:<20200131102434.GB5074@tik.uni-stuttgart.de>

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: Is there a way to clone-install Cygwin?
  2020-01-31 11:29     ` Ulli Horlacher
@ 2020-01-31 12:05       ` Ulli Horlacher
  2020-01-31 12:54       ` Thomas Wolff
  1 sibling, 0 replies; 23+ messages in thread
From: Ulli Horlacher @ 2020-01-31 12:05 UTC (permalink / raw)
  To: cygwin

On Fri 2020-01-31 (12:29), Ulli Horlacher wrote:

> > On Mon 2020-01-20 (19:28), Brent Epp wrote:
> > 
> > > Cygwin is totally portable! You can simply copy the installation folder to 
> > > another PC, copy the shortcut (edit target if needed) and it will work. 
> > 
> > I have tried it with:
> > 
> > /: cat zip.bat
> > cd C:\
> > \7z\7za a -tzip -xr!cygwin64/home/* -xr!cygwin64/var/log/* tmp\cygwin64.zip cygwin64
> 
> > Next problem is: the file permissions will not be restored.
> 
> And all symbolic links have been extracted as regular files :-(

Next try with tar container:

On the source host I used:

cd /cygdrive/c
tar --one-file-system --exclude=cygwin64/var/log/* --exclude=cygwin64/home/* -cvzf /cygdrive/c/tmp/cygwin64.tgz cygwin64

I transfered this cygwin64.tgz to the destintion host and tried to extract
it:

C:\>ver
Microsoft Windows [Version 10.0.18363.592]

C:\>tar --version
bsdtar 3.3.2 - libarchive 3.3.2 zlib/1.2.5.f-ipp

C:\>tar -xzf cygwin64.tgz
cygwin64/bin/apropos: Can't create '\\\\?\\C:\\\\cygwin64\\bin\\apropos'
cygwin64/bin/awk: Can't create '\\\\?\\C:\\\\cygwin64\\bin\\awk'
cygwin64/bin/bzcmp: Can't create '\\\\?\\C:\\\\cygwin64\\bin\\bzcmp'
cygwin64/bin/bzegrep: Can't create '\\\\?\\C:\\\\cygwin64\\bin\\bzegrep'
cygwin64/bin/bzfgrep: Can't create '\\\\?\\C:\\\\cygwin64\\bin\\bzfgrep'
cygwin64/bin/bzless: Can't create '\\\\?\\C:\\\\cygwin64\\bin\\bzless'
cygwin64/bin/captoinfo: Can't create '\\\\?\\C:\\\\cygwin64\\bin\\captoinfo'
cygwin64/bin/dnsdomainname: Can't create '\\\\?\\C:\\\\cygwin64\\bin\\dnsdomainname'
cygwin64/bin/domainname: Can't create '\\\\?\\C:\\\\cygwin64\\bin\\domainname'
cygwin64/bin/ex: Can't create '\\\\?\\C:\\\\cygwin64\\bin\\ex'
cygwin64/bin/infotocap: Can't create '\\\\?\\C:\\\\cygwin64\\bin\\infotocap'
cygwin64/bin/lzcat: Can't create '\\\\?\\C:\\\\cygwin64\\bin\\lzcat'
cygwin64/bin/lzcmp: Can't create '\\\\?\\C:\\\\cygwin64\\bin\\lzcmp'
cygwin64/bin/lzdiff: Can't create '\\\\?\\C:\\\\cygwin64\\bin\\lzdiff'
cygwin64/bin/lzegrep: Can't create '\\\\?\\C:\\\\cygwin64\\bin\\lzegrep'
cygwin64/bin/lzfgrep: Can't create '\\\\?\\C:\\\\cygwin64\\bin\\lzfgrep'
cygwin64/bin/lzgrep: Can't create '\\\\?\\C:\\\\cygwin64\\bin\\lzgrep'
cygwin64/bin/lzless: Can't create '\\\\?\\C:\\\\cygwin64\\bin\\lzless'
cygwin64/bin/lzma: Can't create '\\\\?\\C:\\\\cygwin64\\bin\\lzma'
cygwin64/bin/lzmore: Can't create '\\\\?\\C:\\\\cygwin64\\bin\\lzmore'
cygwin64/bin/reset: Can't create '\\\\?\\C:\\\\cygwin64\\bin\\reset'
cygwin64/bin/rnano: Can't create '\\\\?\\C:\\\\cygwin64\\bin\\rnano'
cygwin64/bin/rvi: Can't create '\\\\?\\C:\\\\cygwin64\\bin\\rvi'
cygwin64/bin/rview: Can't create '\\\\?\\C:\\\\cygwin64\\bin\\rview'
cygwin64/bin/rvim: Can't create '\\\\?\\C:\\\\cygwin64\\bin\\rvim'
^C

(I have started the cmd shell as administrator)


-- 
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:<20200131112904.GC5074@tik.uni-stuttgart.de>

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: Is there a way to clone-install Cygwin?
  2020-01-31 11:29     ` Ulli Horlacher
  2020-01-31 12:05       ` Ulli Horlacher
@ 2020-01-31 12:54       ` Thomas Wolff
  2020-01-31 14:06         ` Ulli Horlacher
  1 sibling, 1 reply; 23+ messages in thread
From: Thomas Wolff @ 2020-01-31 12:54 UTC (permalink / raw)
  To: cygwin


On 31.01.2020 12:29, Ulli Horlacher wrote:
> On Fri 2020-01-31 (11:24), Ulli Horlacher wrote:
>
>> On Mon 2020-01-20 (19:28), Brent Epp wrote:
>>
>>> Cygwin is totally portable! You can simply copy the installation folder to
>>> another PC, copy the shortcut (edit target if needed) and it will work.
>> How do you copy it?
>> Which archive container do you use?
On the source system, within cygwin, zip up everything you want, with 
option -y:
cd /; zip -ry cygwin . -x home
or
cd /cygdrive/c; zip -ry cygwin cygwin64 -x ...

On the target system, install a minimal cygwin unzipping environment:
copy files unzip.exe, cygwin1.dll, cygbz2-1.dll into a subdirectory 
called bin

Use that unzip to unpack your zip file. Voilà!

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: Is there a way to clone-install Cygwin?
  2020-01-31 12:54       ` Thomas Wolff
@ 2020-01-31 14:06         ` Ulli Horlacher
  2020-02-01 10:05           ` Andrey Repin
  0 siblings, 1 reply; 23+ messages in thread
From: Ulli Horlacher @ 2020-01-31 14:06 UTC (permalink / raw)
  To: cygwin

On Fri 2020-01-31 (13:54), Thomas Wolff wrote:
> 
> On 31.01.2020 12:29, Ulli Horlacher wrote:
> 
> > On Fri 2020-01-31 (11:24), Ulli Horlacher wrote:
> >
> >> On Mon 2020-01-20 (19:28), Brent Epp wrote:
> >>
> >>> Cygwin is totally portable! You can simply copy the installation folder to
> >>> another PC, copy the shortcut (edit target if needed) and it will work.
> >> How do you copy it?
> >> Which archive container do you use?
> 
> On the source system, within cygwin, zip up everything you want, with 
> option -y:
> cd /; zip -ry cygwin . -x home
> or
> cd /cygdrive/c; zip -ry cygwin cygwin64 -x ...

Ok, I did that.
But:


> On the target system, install a minimal cygwin unzipping environment:
> copy files unzip.exe, cygwin1.dll, cygbz2-1.dll into a subdirectory 
> called bin
> 
> Use that unzip to unpack your zip file. Voilà!

This is way to complicated for my users, they cannot handle it.

I tried to write an installer.bat which uses the Windows bsdtar, but it
fails with:



C:\>dir
 Volume in drive C has no label.
 Volume Serial Number is EC42-8D26

 Directory of C:\

31 Jan 2020  12:45        84.340.162 cygwin64.tgz
31 Jan 2020  14:38        91.960.715 cygwin64.zip
31 Jan 2020  12:45                45 cygwin64_addons.tgz
19 Mar 2019  05:52    <DIR>          PerfLogs
13 Jan 2020  13:12    <DIR>          Program Files
15 Jan 2020  17:32    <DIR>          Program Files (x86)
13 Jan 2020  13:12    <DIR>          Users
13 Jan 2020  14:46    <DIR>          Windows
31 Jan 2020  13:59    <DIR>          xx
31 Jan 2020  14:43        91.960.889 xxx_20200131_144048.zip
               4 File(s)    268.261.811 bytes
               6 Dir(s)  45.442.043.904 bytes free

C:\>tar -xf cygwin64.zip
cygwin64/bin/apropos: Can't create '\\\\?\\C:\\\\cygwin64\\bin\\apropos'
cygwin64/bin/awk: Can't create '\\\\?\\C:\\\\cygwin64\\bin\\awk'
cygwin64/bin/bzcmp: Can't create '\\\\?\\C:\\\\cygwin64\\bin\\bzcmp'
cygwin64/bin/bzegrep: Can't create '\\\\?\\C:\\\\cygwin64\\bin\\bzegrep'
cygwin64/bin/bzfgrep: Can't create '\\\\?\\C:\\\\cygwin64\\bin\\bzfgrep'
cygwin64/bin/bzless: Can't create '\\\\?\\C:\\\\cygwin64\\bin\\bzless'
cygwin64/bin/captoinfo: Can't create '\\\\?\\C:\\\\cygwin64\\bin\\captoinfo'
^C
C:\>

(I run it as administrator).

Any idea what went wrong and how I can fix it?



-- 
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:<5cc67e71-0edf-90a2-3601-50affd5c14da@towo.net>

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: Is there a way to clone-install Cygwin?
  2020-01-31 14:06         ` Ulli Horlacher
@ 2020-02-01 10:05           ` Andrey Repin
  2020-02-01 11:21             ` BGINFO4X
  0 siblings, 1 reply; 23+ messages in thread
From: Andrey Repin @ 2020-02-01 10:05 UTC (permalink / raw)
  To: Ulli Horlacher, cygwin

Greetings, Ulli Horlacher!

> I tried to write an installer.bat which uses the Windows bsdtar, but it
> fails with:



> C:\>dir
>  Volume in drive C has no label.
>  Volume Serial Number is EC42-8D26

>  Directory of C:\

> 31 Jan 2020  12:45        84.340.162 cygwin64.tgz
> 31 Jan 2020  14:38        91.960.715 cygwin64.zip
> 31 Jan 2020  12:45                45 cygwin64_addons.tgz
> 19 Mar 2019  05:52    <DIR>          PerfLogs
> 13 Jan 2020  13:12    <DIR>          Program Files
> 15 Jan 2020  17:32    <DIR>          Program Files (x86)
> 13 Jan 2020  13:12    <DIR>          Users
> 13 Jan 2020  14:46    <DIR>          Windows
> 31 Jan 2020  13:59    <DIR>          xx
> 31 Jan 2020  14:43        91.960.889 xxx_20200131_144048.zip
>                4 File(s)    268.261.811 bytes
>                6 Dir(s)  45.442.043.904 bytes free

> C:\>tar -xf cygwin64.zip
> cygwin64/bin/apropos: Can't create '\\\\?\\C:\\\\cygwin64\\bin\\apropos'
> cygwin64/bin/awk: Can't create '\\\\?\\C:\\\\cygwin64\\bin\\awk'
> cygwin64/bin/bzcmp: Can't create '\\\\?\\C:\\\\cygwin64\\bin\\bzcmp'
> cygwin64/bin/bzegrep: Can't create '\\\\?\\C:\\\\cygwin64\\bin\\bzegrep'
> cygwin64/bin/bzfgrep: Can't create '\\\\?\\C:\\\\cygwin64\\bin\\bzfgrep'
> cygwin64/bin/bzless: Can't create '\\\\?\\C:\\\\cygwin64\\bin\\bzless'
> cygwin64/bin/captoinfo: Can't create '\\\\?\\C:\\\\cygwin64\\bin\\captoinfo'
> ^C
> C:\>

> (I run it as administrator).

> Any idea what went wrong

Wrong is precisely the way you are trying to "install" it.

> and how I can fix it?

Use supported ways to install Cygwin.
Even if you would successfully unpack your clone, on a different system, you
would still need to run full rebase. It's way easier to just script setup.exe
to install what you need.


-- 
With best regards,
Andrey Repin
Saturday, February 1, 2020 12:53:20

Sorry for my terrible english...


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: Is there a way to clone-install Cygwin?
  2020-02-01 10:05           ` Andrey Repin
@ 2020-02-01 11:21             ` BGINFO4X
  2020-02-03 16:40               ` Ulli Horlacher
  0 siblings, 1 reply; 23+ messages in thread
From: BGINFO4X @ 2020-02-01 11:21 UTC (permalink / raw)
  To: cygwin; +Cc: Ulli Horlacher

Hello,

What about something like this?

https://vegardit.github.io/cygwin-portable-installer/

Can it help u?

Regards.



Missatge de Andrey Repin <anrdaemon@yandex.ru> del dia ds., 1 de febr. 2020
a les 11:05:

> Greetings, Ulli Horlacher!
>
> > I tried to write an installer.bat which uses the Windows bsdtar, but it
> > fails with:
>
>
>
> > C:\>dir
> >  Volume in drive C has no label.
> >  Volume Serial Number is EC42-8D26
>
> >  Directory of C:\
>
> > 31 Jan 2020  12:45        84.340.162 cygwin64.tgz
> > 31 Jan 2020  14:38        91.960.715 cygwin64.zip
> > 31 Jan 2020  12:45                45 cygwin64_addons.tgz
> > 19 Mar 2019  05:52    <DIR>          PerfLogs
> > 13 Jan 2020  13:12    <DIR>          Program Files
> > 15 Jan 2020  17:32    <DIR>          Program Files (x86)
> > 13 Jan 2020  13:12    <DIR>          Users
> > 13 Jan 2020  14:46    <DIR>          Windows
> > 31 Jan 2020  13:59    <DIR>          xx
> > 31 Jan 2020  14:43        91.960.889 xxx_20200131_144048.zip
> >                4 File(s)    268.261.811 bytes
> >                6 Dir(s)  45.442.043.904 bytes free
>
> > C:\>tar -xf cygwin64.zip
> > cygwin64/bin/apropos: Can't create '\\\\?\\C:\\\\cygwin64\\bin\\apropos'
> > cygwin64/bin/awk: Can't create '\\\\?\\C:\\\\cygwin64\\bin\\awk'
> > cygwin64/bin/bzcmp: Can't create '\\\\?\\C:\\\\cygwin64\\bin\\bzcmp'
> > cygwin64/bin/bzegrep: Can't create '\\\\?\\C:\\\\cygwin64\\bin\\bzegrep'
> > cygwin64/bin/bzfgrep: Can't create '\\\\?\\C:\\\\cygwin64\\bin\\bzfgrep'
> > cygwin64/bin/bzless: Can't create '\\\\?\\C:\\\\cygwin64\\bin\\bzless'
> > cygwin64/bin/captoinfo: Can't create
> '\\\\?\\C:\\\\cygwin64\\bin\\captoinfo'
> > ^C
> > C:\>
>
> > (I run it as administrator).
>
> > Any idea what went wrong
>
> Wrong is precisely the way you are trying to "install" it.
>
> > and how I can fix it?
>
> Use supported ways to install Cygwin.
> Even if you would successfully unpack your clone, on a different system,
> you
> would still need to run full rebase. It's way easier to just script
> setup.exe
> to install what you need.
>
>
> --
> With best regards,
> Andrey Repin
> Saturday, February 1, 2020 12:53:20
>
> Sorry for my terrible english...
>
>
> --
> Problem reports:       http://cygwin.com/problems.html
> FAQ:                   http://cygwin.com/faq/
> Documentation:         http://cygwin.com/docs.html
> Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
>
>

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: Is there a way to clone-install Cygwin?
  2020-02-01 11:21             ` BGINFO4X
@ 2020-02-03 16:40               ` Ulli Horlacher
  2020-02-03 17:01                 ` BGINFO4X
  0 siblings, 1 reply; 23+ messages in thread
From: Ulli Horlacher @ 2020-02-03 16:40 UTC (permalink / raw)
  To: cygwin

On Sat 2020-02-01 (12:21), BGINFO4X wrote:

> What about something like this?
> 
> https://vegardit.github.io/cygwin-portable-installer/

Looks great!

But when running I get:

(...)
Creating updater [C:\Users\admin\cygwin-portable-updater.cmd]...
Disabling default Cygwin launcher [c:\cygwin64\Cygwin.bat]...
Creating [c:\cygwin64\portable-init.sh]...
dos2unix: converting file c:\cygwin64\portable-init.sh to Unix format...
Creating launcher [C:\Users\admin\cygwin-portable.cmd]...
Replacing [/etc/fstab]...
The system cannot find the path specified.
The system cannot find the path specified.
'bash' is not recognized as an internal or external command,
operable program or batch file.
'bash' is not recognized as an internal or external command,
operable program or batch file.
File not found - C:\CYGWIN64\HOME\ROOT\.BASHRC
The system cannot find the path specified.

###########################################################
# Installing [Cygwin Portable] FAILED!
###########################################################


Waiting for 28 seconds, press a key to continue ...


Perhaps I have done a configuration error?

-- 
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:<CAO2ddnYEJWbMb-tU09J+uWk4j85hdFn_sS9b0=yirPZKwT5Biw@mail.gmail.com>

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: Is there a way to clone-install Cygwin?
  2020-02-03 16:40               ` Ulli Horlacher
@ 2020-02-03 17:01                 ` BGINFO4X
  2020-02-04 17:16                   ` Ulli Horlacher
  0 siblings, 1 reply; 23+ messages in thread
From: BGINFO4X @ 2020-02-03 17:01 UTC (permalink / raw)
  To: cygwin

Missatge de Ulli Horlacher <framstag@rus.uni-stuttgart.de> del dia dl., 3
de febr. 2020 a les 17:41:

> On Sat 2020-02-01 (12:21), BGINFO4X wrote:
>
> > What about something like this?
> >
> > https://vegardit.github.io/cygwin-portable-installer/
>
> Looks great!
>
> But when running I get:
>
> (...)
> Creating updater [C:\Users\admin\cygwin-portable-updater.cmd]...
> Disabling default Cygwin launcher [c:\cygwin64\Cygwin.bat]...
> Creating [c:\cygwin64\portable-init.sh]...
> dos2unix: converting file c:\cygwin64\portable-init.sh to Unix format...
> Creating launcher [C:\Users\admin\cygwin-portable.cmd]...
> Replacing [/etc/fstab]...
> The system cannot find the path specified.
> The system cannot find the path specified.
> 'bash' is not recognized as an internal or external command,
> operable program or batch file.
> 'bash' is not recognized as an internal or external command,
> operable program or batch file.
> File not found - C:\CYGWIN64\HOME\ROOT\.BASHRC
> The system cannot find the path specified.
>
> ###########################################################
> # Installing [Cygwin Portable] FAILED!
> ###########################################################
>
>
> Waiting for 28 seconds, press a key to continue ...
>
>
> Perhaps I have done a configuration error?
>
> I really don't now, perhaps u could ask the author or file a bug in
github, or some googling.

Regards.

> --
> 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:<CAO2ddnYEJWbMb-tU09J+uWk4j85hdFn_sS9b0=yirPZKwT5Biw@mail.gmail.com>
>
> --
> Problem reports:       http://cygwin.com/problems.html
> FAQ:                   http://cygwin.com/faq/
> Documentation:         http://cygwin.com/docs.html
> Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
>
>

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: Is there a way to clone-install Cygwin?
  2020-02-03 17:01                 ` BGINFO4X
@ 2020-02-04 17:16                   ` Ulli Horlacher
  0 siblings, 0 replies; 23+ messages in thread
From: Ulli Horlacher @ 2020-02-04 17:16 UTC (permalink / raw)
  To: cygwin

On Mon 2020-02-03 (18:01), BGINFO4X wrote:

> > > https://vegardit.github.io/cygwin-portable-installer/
> >
> > Looks great!
> >
> > But when running I get:
> >
> > (...)
> > Creating updater [C:\Users\admin\cygwin-portable-updater.cmd]...
> > Disabling default Cygwin launcher [c:\cygwin64\Cygwin.bat]...
> > Creating [c:\cygwin64\portable-init.sh]...
> > dos2unix: converting file c:\cygwin64\portable-init.sh to Unix format...
> > Creating launcher [C:\Users\admin\cygwin-portable.cmd]...
> > Replacing [/etc/fstab]...
> > The system cannot find the path specified.
> > The system cannot find the path specified.
> > 'bash' is not recognized as an internal or external command,
> > operable program or batch file.
> > 'bash' is not recognized as an internal or external command,
> > operable program or batch file.
> > File not found - C:\CYGWIN64\HOME\ROOT\.BASHRC
> > The system cannot find the path specified.
> >
> > ###########################################################
> > # Installing [Cygwin Portable] FAILED!
> > ###########################################################
> >
> >
> > Waiting for 28 seconds, press a key to continue ...
> >
> >
> > Perhaps I have done a configuration error?
> >
> > I really don't now, perhaps u could ask the author or file a bug in github, or some googling.

It was my (configuration) error, see:

https://github.com/vegardit/cygwin-portable-installer/issues/16

-- 
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:<CAO2ddnbm6WQMzgxUyj1VNjLzf94AT9reLUCbp4F-gMVK5EGAUg@mail.gmail.com>

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: Is there a way to clone-install Cygwin?
  2020-01-31 19:21   ` Achim Gratz
@ 2020-01-31 20:25     ` Brian Inglis
  0 siblings, 0 replies; 23+ messages in thread
From: Brian Inglis @ 2020-01-31 20:25 UTC (permalink / raw)
  To: cygwin

On 2020-01-31 12:21, Achim Gratz wrote:
> Ulli Horlacher writes:
>>> To a new naked Windows box, if you can "mount" it over the network
>>
>> No, I cannot do that. My destination Windows hosts are behind firewalls.
>> They cannot mount anything. I have to transfer a container file.
> 
> Try a vhdx maybe?
Works only on some editions, flavours, features.

Format a USB drive as NTFS, copy the Cygwin directory tree verbatim onto that,
then copy the Cygwin directory tree verbatim onto the destination system.
You should use a common (admin?) owner, and a common (guest?) user if you want
to preset a home dir.

You could set everything up in a single tree including packages and setup so
that you could do reinstalls if required.

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

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: Is there a way to clone-install Cygwin?
  2020-01-31 14:13 ` Ulli Horlacher
@ 2020-01-31 19:21   ` Achim Gratz
  2020-01-31 20:25     ` Brian Inglis
  0 siblings, 1 reply; 23+ messages in thread
From: Achim Gratz @ 2020-01-31 19:21 UTC (permalink / raw)
  To: cygwin

Ulli Horlacher writes:
>> To a new naked Windows box, if you can "mount" it over the network
>
> No, I cannot do that. My destination Windows hosts are behind firewalls.
> They cannot mount anything. I have to transfer a container file.

Try a vhdx maybe?


Regards,
Achim.
-- 
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+

SD adaptation for Waldorf rackAttack V1.04R1:
http://Synth.Stromeko.net/Downloads.html#WaldorfSDada

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: Is there a way to clone-install Cygwin?
  2020-01-31 14:06 KARL BOTTS
@ 2020-01-31 14:13 ` Ulli Horlacher
  2020-01-31 19:21   ` Achim Gratz
  0 siblings, 1 reply; 23+ messages in thread
From: Ulli Horlacher @ 2020-01-31 14:13 UTC (permalink / raw)
  To: cygwin

On Fri 2020-01-31 (08:06), KARL BOTTS wrote:
> 
> >>> Cygwin is totally portable! You can simply copy the installation folder to
> >>> another PC, copy the shortcut (edit target if needed) and it will work.
> 
> >> How do you copy it?
> >> Which archive container do you use?
> 
> I have been using this approach for years.
> 
> To a new naked Windows box, if you can "mount" it over the network

No, I cannot do that. My destination Windows hosts are behind firewalls.
They cannot mount anything. I have to transfer a container file.


> Be sure to use 64-bit cygwin.  The 32-bit used to work, but now and then
> I would have to fuss with "rebase".  I have never had that problem with
> the 64-bit.  

I have only 64 bit systems. Alls 32 bit systems are gone.

-- 
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:<424yaEoFi7856Set.1580479568@web03.cms.usa.net>

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: Is there a way to clone-install Cygwin?
@ 2020-01-31 14:06 KARL BOTTS
  2020-01-31 14:13 ` Ulli Horlacher
  0 siblings, 1 reply; 23+ messages in thread
From: KARL BOTTS @ 2020-01-31 14:06 UTC (permalink / raw)
  To: cygwin


>>> Cygwin is totally portable! You can simply copy the installation folder
to
>>> another PC, copy the shortcut (edit target if needed) and it will work.

>> How do you copy it?
>> Which archive container do you use?

I have been using this approach for years.

To a new naked Windows box, if you can "mount" it over the network, e.g., map
a drive letter to it, then you can use cygwin tools from an existing box with
cygwin, to copy cygwin to the new.  I usually use cygwin tar, but I think 'cp
-a' will work.  I think in the past, I have used robocopy.  The key is the
links and symlinks: normal Windows tools won't get them right.

For upgrades, once cygwin is on both boxes, I always use tar.  I've got this
down to pretty much routine.  I do it once or twice a year.  I upgrade cygwin
on one box, vet it for a few days, then upgrade several others.  I untar into
an empty dir, then use native cmd.exe 'move' to swap the dirs.

Be sure to use 64-bit cygwin.  The 32-bit used to work, but now and then I
would have to fuss with "rebase".  I have never had that problem with the
64-bit.  


---
Karl Botts, kdbotts@usa.net


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: Is there a way to clone-install Cygwin?
@ 2020-01-21 19:17 Lavrentiev, Anton (NIH/NLM/NCBI) [C] via cygwin
  0 siblings, 0 replies; 23+ messages in thread
From: Lavrentiev, Anton (NIH/NLM/NCBI) [C] via cygwin @ 2020-01-21 19:17 UTC (permalink / raw)
  To: marco atzeri (marco.atzeri@gmail.com); +Cc: 'cygwin@cygwin.com'

> attached my solution to re-install or duplicate the packages of an existing installation.

Thank you, Marco!  I'll give that a try.


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 23+ messages in thread

end of thread, other threads:[~2020-02-04 17:16 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-21  0:58 Is there a way to clone-install Cygwin? Lavrentiev, Anton (NIH/NLM/NCBI) [C] via cygwin
2020-01-21  1:27 ` Brent Epp
2020-01-31 10:25   ` Ulli Horlacher
2020-01-31 11:29     ` Ulli Horlacher
2020-01-31 12:05       ` Ulli Horlacher
2020-01-31 12:54       ` Thomas Wolff
2020-01-31 14:06         ` Ulli Horlacher
2020-02-01 10:05           ` Andrey Repin
2020-02-01 11:21             ` BGINFO4X
2020-02-03 16:40               ` Ulli Horlacher
2020-02-03 17:01                 ` BGINFO4X
2020-02-04 17:16                   ` Ulli Horlacher
     [not found] ` <16fc5b08e80.2780.a1382e26d1292f71ec6ef0cd03d49346@pdc.ca>
2020-01-21  2:33   ` Lavrentiev, Anton (NIH/NLM/NCBI) [C] via cygwin
2020-01-21  2:55     ` Brent Epp
2020-01-21  4:46 ` Marco Atzeri
2020-01-21 20:33 ` Achim Gratz
2020-01-28 21:35 ` Andrey Repin
2020-01-28 22:00   ` Lavrentiev, Anton (NIH/NLM/NCBI) [C] via cygwin
2020-01-21 19:17 Lavrentiev, Anton (NIH/NLM/NCBI) [C] via cygwin
2020-01-31 14:06 KARL BOTTS
2020-01-31 14:13 ` Ulli Horlacher
2020-01-31 19:21   ` Achim Gratz
2020-01-31 20:25     ` Brian Inglis

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