public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Achim Gratz <Stromeko@nexgo.de>
To: cygwin@cygwin.com
Subject: Re: tar cygwin64/ from old to new computer?
Date: Sun, 25 Nov 2018 20:13:00 -0000	[thread overview]
Message-ID: <87efb8lxtt.fsf@Rainer.invalid> (raw)
In-Reply-To: <20181125193110.GA18332@ingber.com> (Lester Ingber's message of	"Sun, 25 Nov 2018 11:31:10 -0800")

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

  reply	other threads:[~2018-11-25 20:13 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-11-25 14:39 Lester Ingber
2018-11-25 17:09 ` Hans-Bernhard Bröker
2018-11-25 19:22   ` tar cygwin64/ from old to new computer: L A Walsh
2018-11-25 20:05     ` Andrey Repin
2018-11-26 19:19       ` L A Walsh
2018-11-25 17:20 ` tar cygwin64/ from old to new computer? Achim Gratz
2018-11-25 18:50 ` Andrey Repin
2018-11-25 19:31 ` Lester Ingber
2018-11-25 20:13   ` Achim Gratz [this message]
2018-11-26 13:47     ` KARL BOTTS
2018-11-26 20:32 Gilbert St. Firmin
2018-11-26 21:22 ` Hans-Bernhard Bröker
2018-11-27 15:20 ` Andrey Repin
2018-11-27 15:34   ` cyg Simple

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87efb8lxtt.fsf@Rainer.invalid \
    --to=stromeko@nexgo.de \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).