delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2020/01/31/07:06:34

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:to:subject:message-id:references
:mime-version:content-type:in-reply-to; q=dns; s=default; b=TAqB
Tw78noP0dK4Mz4YRAbbxlk+j4GVBYqCP8zzB2jm4SoNPdthGwaWI+O6xId5kk717
BIip3Ye+NYa1u8vvNU41PRb/7anoMG8BmeEdgDzHyDltkKppnad7GUoOexyyJVYV
7Wry0deAx3r2Ud0X93o1bGv+14O0BL/+LrjfFtE=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:to:subject:message-id:references
:mime-version:content-type:in-reply-to; s=default; bh=RpFSNQJOIy
qKxruvWKt54XVFsWQ=; b=RQGTVJeTqvUivgeQj+/OrWStj9IODMvcFwXTPjSofy
+YeBBpASrXXNS42QHbpVOjYz8biOVACcIjceHflj9Pnnazom241rki8n4L9Ql1+V
55DnC3vnDZMTy9O7FadekWqMXweJ9p++Qk5ThJshIFOzSpukDz3+kawKkYqKEWHb
Q=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Spam-SWARE-Status: No, score=-2.1 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.1 spammy=20200131112904 DOT GC5074 AT tik DOT uni-stuttgart DOT de, U*20200131112904.GC5074, 20200131112904gc5074tikunistuttgartde, 20200131112904 DOT gc5074 AT tik DOT uni-stuttgart DOT de
X-HELO: mx4.rus.uni-stuttgart.de
Date: Fri, 31 Jan 2020 13:05:26 +0100
From: Ulli Horlacher <framstag AT rus DOT uni-stuttgart DOT de>
To: cygwin AT cygwin DOT com
Subject: Re: Is there a way to clone-install Cygwin?
Message-ID: <20200131120526.GA6676@tik.uni-stuttgart.de>
Mail-Followup-To: cygwin AT cygwin DOT com
References: <SN6PR09MB2877F202738BF6B7029538F3A50D0 AT SN6PR09MB2877 DOT namprd09 DOT prod DOT outlook DOT com> <16fc5b76c50 DOT 2780 DOT a1382e26d1292f71ec6ef0cd03d49346 AT pdc DOT ca> <20200131102434 DOT GB5074 AT tik DOT uni-stuttgart DOT de> <20200131112904 DOT GC5074 AT tik DOT uni-stuttgart DOT de>
MIME-Version: 1.0
In-Reply-To: <20200131112904.GC5074@tik.uni-stuttgart.de>
User-Agent: Mutt/1.5.23 (2014-03-12)
X-IsSubscribed: yes

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 AT tik DOT uni-stuttgart DOT de
Allmandring 30a                Tel:    ++49-711-68565868
70569 Stuttgart (Germany)      WWW:    http://www.tik.uni-stuttgart.de/
REF:<20200131112904 DOT GC5074 AT tik DOT uni-stuttgart DOT 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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019