delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2020/01/20/23:47:48

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:subject:to:references:from:message-id:date
:mime-version:in-reply-to:content-type; q=dns; s=default; b=gRAV
LD10dErD7CDYVLN4mBy9exuI0O2j2fYTABLaQJ5dt9B7ZoAmBWzd9y0uQJNGWD7Y
xlkcxk0VjZBje4KEeyZa3+tWroI9QOTSF24hChXdQNS2/nH9oaJCwsO1jx1IIdUy
rjJE+JKMGQceuyb5PAOO+max/s21xTmK9lFpEN8=
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:subject:to:references:from:message-id:date
:mime-version:in-reply-to:content-type; s=default; bh=5RGzjXn6/A
MVc+nbdYVWVP0z3Vw=; b=xGpl2gNzGJ4EXcnkiKXSKwMf/YxVMHAp5X4ptOg5c3
UdMV5ujGhOANuu/O+4h3fnJePyl10R1Jqgf5V+2dhHrsT0WEGlhtb3UhJDUaFQFb
hZQfPGjENIsYbJEcHBGMpZMAD9JzqMRft71dcjcdiekAc7ZnJSFBqENUj1Z6fKBY
E=
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=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.1 spammy=lista, row, awk
X-HELO: mail-wr1-f48.google.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to; bh=hK+MotTTBeYRVVAUUqbcXMLl3z+XZrtDpoOqzf6Km9U=; b=ufllMzymLU9mi/NnyCPaHWi0o4AKpVYHken1n0qwhPz9K3BIle1X4nQPtolUmeCeYV Iybxz1xwLZlcSzGheldWQl854sQ4TY3zUmRx13IUZMBzww2mlRepEMPuy0nk7KkRMcE0 IIXvIgN6lmp2GpG23Wt9JJzE1dfLvQCiIoXspJJW0Fz3HFaV1x/sdHtmhUFaFcV6up8p 8nCRZ0+I361JGsyRmB1QiRtM0rKJLURT3rqlV0BLalykxw6tOxI4boVKU6+iJisdo2Z4 Ps0HTwwnCJBbPEO5nL8JsOcr38x2pmK02DYy/jlPYoWLxt6nR/7CahD3xh2ykUZ5yoVY 4wRg==
Subject: Re: Is there a way to clone-install Cygwin?
To: cygwin AT cygwin DOT com
References: <SN6PR09MB2877F202738BF6B7029538F3A50D0 AT SN6PR09MB2877 DOT namprd09 DOT prod DOT outlook DOT com>
From: Marco Atzeri <marco DOT atzeri AT gmail DOT com>
Message-ID: <1539c3b5-904a-d94a-60ec-a8feb58ec253@gmail.com>
Date: Tue, 21 Jan 2020 05:46:49 +0100
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1
MIME-Version: 1.0
In-Reply-To: <SN6PR09MB2877F202738BF6B7029538F3A50D0@SN6PR09MB2877.namprd09.prod.outlook.com>
X-IsSubscribed: yes

--------------E1DFAA15443B9B2B0FECC84E
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit

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


--------------E1DFAA15443B9B2B0FECC84E
Content-Type: text/plain; charset=UTF-8;
 name="cyg-reinstall.sh"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
 filename="cyg-reinstall.sh"

IyEvYmluL2Jhc2gKIyBDcmVhdGUgYSBiYXRjaCBmaWxlIHRvIHJlaW5zdGFs
bCB1c2luZyBzZXR1cC17QVJDSH0uZXhlIAojIGFsbCBwYWNrYWdlcyBvciB0
aGUgb25lcyByZXBvcnRlZCBhcyBpbmNvbXBsZXRlCgpwcmludF9lcnJvcj0x
CgppZiBbICQjIC1lcSAxIF0KICB0aGVuCiAgICBpZiBbICQxID09ICItSSIg
XQogICAgdGhlbgogICAgICBsaXN0YT0kKG1rdGVtcCkKICAgICAgY3lnY2hl
Y2sgLWMgfCBncmVwICJJbmNvbXBsZXRlIiA+ICRsaXN0YQogICAgICBwcmlu
dF9lcnJvcj0wCiAgICBmaQogICAgaWYgWyAkMSA9PSAiLUEiIF0KICAgIHRo
ZW4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g
LVAgaW5zdGFsbAojIGZvciByZS1pbnN0YWxsIHBhY2thZ2VzIHdlIG5lZWQg
Ym90aAppZiBbICQxID09ICItSSIgXQp0aGVuCiAgYXdrICdCRUdJTntwcmlu
dGYoIiAteCAiKX0gTlI9PTF7cHJpbnRmICQxfXtwcmludGYgIiwlcyIsICQx
fScgJHtsaXN0YX0gPj4gY3lnLXJlaW5zdGFsbC0ke0F9LmJhdCAKZmkKCmF3
ayAnQkVHSU57cHJpbnRmKCIgLVAgIil9IE5SPT0xe3ByaW50ZiAkMX17cHJp
bnRmICIsJXMiLCAkMX0gRU5EIHsgcHJpbnRmICJcclxuIHBhdXNlICJ9JyAk
e2xpc3RhfSA+PiBjeWctcmVpbnN0YWxsLSR7QX0uYmF0IAoKIyBleGVjdXRp
b24gcGVybWlzc2lvbiBmb3IgdGhlIHNjcmlwdApjaG1vZCAreCBjeWctcmVp
bnN0YWxsLSR7QX0uYmF0Cgo=


--------------E1DFAA15443B9B2B0FECC84E
Content-Type: text/plain; charset=us-ascii


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

- Raw text -


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