Is there a way to clone-install Cygwin?

classic Classic list List threaded Threaded
23 messages Options
12
Reply | Threaded
Open this post in threaded view
|

Is there a way to clone-install Cygwin?

Cygwin list mailing list
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

Reply | Threaded
Open this post in threaded view
|

Re: Is there a way to clone-install Cygwin?

Brent Epp
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" <[hidden email]> 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

Reply | Threaded
Open this post in threaded view
|

RE: Is there a way to clone-install Cygwin?

Cygwin list mailing list
In reply to this post by Cygwin list mailing list
> 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

Reply | Threaded
Open this post in threaded view
|

RE: Is there a way to clone-install Cygwin?

Brent Epp
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" <[hidden email]> 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

Reply | Threaded
Open this post in threaded view
|

Re: Is there a way to clone-install Cygwin?

marco atzeri-4
In reply to this post by Cygwin list mailing list
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



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

cyg-reinstall.sh (2K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Is there a way to clone-install Cygwin?

Cygwin list mailing list
In reply to this post by Cygwin list mailing list
> 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

Reply | Threaded
Open this post in threaded view
|

Re: Is there a way to clone-install Cygwin?

Achim Gratz
In reply to this post by Cygwin list mailing list
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

Reply | Threaded
Open this post in threaded view
|

Re: Is there a way to clone-install Cygwin?

Andrey Repin
In reply to this post by Cygwin list mailing list
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

Reply | Threaded
Open this post in threaded view
|

RE: Is there a way to clone-install Cygwin?

Cygwin list mailing list
> 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

Reply | Threaded
Open this post in threaded view
|

Re: Is there a way to clone-install Cygwin?

Ulli Horlacher
In reply to this post by Brent Epp
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: [hidden email]
Allmandring 30a                Tel:    ++49-711-68565868
70569 Stuttgart (Germany)      WWW:    http://www.tik.uni-stuttgart.de/
REF:<[hidden email]>

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

Reply | Threaded
Open this post in threaded view
|

Re: Is there a way to clone-install Cygwin?

Ulli Horlacher
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: [hidden email]
Allmandring 30a                Tel:    ++49-711-68565868
70569 Stuttgart (Germany)      WWW:    http://www.tik.uni-stuttgart.de/
REF:<[hidden email]>

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

Reply | Threaded
Open this post in threaded view
|

Re: Is there a way to clone-install Cygwin?

Ulli Horlacher
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: [hidden email]
Allmandring 30a                Tel:    ++49-711-68565868
70569 Stuttgart (Germany)      WWW:    http://www.tik.uni-stuttgart.de/
REF:<[hidden email]>

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

Reply | Threaded
Open this post in threaded view
|

Re: Is there a way to clone-install Cygwin?

Thomas Wolff
In reply to this post by Ulli Horlacher

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

Reply | Threaded
Open this post in threaded view
|

Re: Is there a way to clone-install Cygwin?

KARL BOTTS
In reply to this post by Cygwin list mailing list

>>> 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, [hidden email]


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

Reply | Threaded
Open this post in threaded view
|

Re: Is there a way to clone-install Cygwin?

Ulli Horlacher
In reply to this post by Thomas Wolff
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: [hidden email]
Allmandring 30a                Tel:    ++49-711-68565868
70569 Stuttgart (Germany)      WWW:    http://www.tik.uni-stuttgart.de/
REF:<[hidden email]>

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

Reply | Threaded
Open this post in threaded view
|

Re: Is there a way to clone-install Cygwin?

Ulli Horlacher
In reply to this post by KARL BOTTS
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: [hidden email]
Allmandring 30a                Tel:    ++49-711-68565868
70569 Stuttgart (Germany)      WWW:    http://www.tik.uni-stuttgart.de/
REF:<[hidden email]>

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

Reply | Threaded
Open this post in threaded view
|

Re: Is there a way to clone-install Cygwin?

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

Reply | Threaded
Open this post in threaded view
|

Re: Is there a way to clone-install Cygwin?

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

Reply | Threaded
Open this post in threaded view
|

Re: Is there a way to clone-install Cygwin?

Andrey Repin
In reply to this post by Ulli Horlacher
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

Reply | Threaded
Open this post in threaded view
|

Re: Is there a way to clone-install Cygwin?

BGINFO4X
Hello,

What about something like this?

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

Can it help u?

Regards.



Missatge de Andrey Repin <[hidden email]> 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

12