X-Recipient: archive-cygwin@delorie.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:from:to:subject:references:date:in-reply-to
	:message-id:mime-version:content-type:content-transfer-encoding;
	 q=dns; s=default; b=UjnVPaPqa/PgVFyTyudhdpWNoUsh1zLkyEHfVWHhtL4
	unGMD8HJ9r5fCpv36e9lhI9O442jyGuakCokzh0cG6XGaSID1QOmJOPX3iwN+m0g
	Hwpwu8pyWr+z7sEsAxx219YT6LYT2xuzVfBWmjnrpOykbkZ0dcBrVMZjnPVxNpzY
	=
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:from:to:subject:references:date:in-reply-to
	:message-id:mime-version:content-type:content-transfer-encoding;
	 s=default; bh=1z4kcwX1ym0WL43aZrPxItISzqo=; b=q58x7eOXo4mR0upat
	RD3fKkxdMWWm225O96I9cKMru44dYCujWaqsQjwMPYyHzHqy2DWEiHYbF/67aLWZ
	xwJ4p6yac/js0karMnRuK3gLGS0pRvv3Zz913hd1IX3gnZdRMI4h5qnccSDBLnty
	XO3EqiwRuFWCPo980o5wjkfJ7o=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL,BAYES_00,SPF_PASS autolearn=ham version=3.3.2 spammy=Hx-languages-length:1434, scripts, services, Hx-spam-relays-external:ESMTPA
X-HELO: mx009.vodafonemail.xion.oxcs.net
From: Achim Gratz <Stromeko@nexgo.de>
To: cygwin@cygwin.com
Subject: Re: tar cygwin64/ from old to new computer?
References: <20181125143854.GA20164@ingber.com>	<20181125193110.GA18332@ingber.com>
Date: Sun, 25 Nov 2018 21:13:50 +0100
In-Reply-To: <20181125193110.GA18332@ingber.com> (Lester Ingber's message of	"Sun, 25 Nov 2018 11:31:10 -0800")
Message-ID: <87efb8lxtt.fsf@Rainer.invalid>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id wAPKEAmW014759

Lester Ingber writes:
> On the new PC I use Powershell (as Admin) to run setup-x86_64.exe for the Base setup.

Not absolutely needed, but it creates all the directories and files you
need correctly, so it's a good start.

> From the old PC I can use the /etc/setup/installed.db file in the new machine at the same location.

…then modify it as described and then run setup.exe again and let it
"update" your installation.  If you had any services running you'll also
need to run their initialization scripts again.

> On the old machine, 5-6 years ago I used c:/cygwin64/ for the top
> directory, but now I'll use c:/cygwin/ .  I don't think this affects
> anything.

Not unless you have scripts that use the Windows path someplace.  You'll
find out soon enough, I think.

> I'll tar up all my /usr/local/ files to drop into the new PC.
>
> I didn't see the posting referred to by Achim, but I think all I need is the above.

It was this one:

  https://sourceware.org/ml/cygwin/2015-09/msg00023.html

You need a slight modification of the sed script however due to a more
recent format change of installed.db:

sed -re 's/^(.+) .+ ([01])$/\1 \1-0-0.tar.bz \2/' installed.db.old > /etc/setup/installed.db 



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

Wavetables for the Terratec KOMPLEXER:
http://Synth.Stromeko.net/Downloads.html#KomplexerWaves

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


