How can I transplant my Cygwin installation to another machine/architectureI?

0

The specific problem I have is this: I have an old (but up-to-date) Cygwin 32-bit installation that has evolved over the past ten years or so. I want to move to a 64-bit Cygwin, with the same facilities.

While the Cygwin graphical installer is moderately nice, it is not "transportable" (Ie you can't copy-and-paste the lines in its windows). So what I'm looking for is this:

  1. A way to extract a list of currently-installed packages from Cygwin
  2. A command-line method to say to the installer "Please install this list"

Is this possible? I know I could do it by adding packages ad-hoc, as I find I need them, but this usually happens according to Murphy's Law; that is, either when I'm in a hurry, or don't have an Internet connection, or both.

Brent.Longborough

Posted 2014-12-13T08:04:36.453

Reputation: 629

2Please be aware that not all 32-bit packages are available in the 64-bit version ... – DavidPostill – 2014-12-13T08:09:21.370

@DavidPostill : Yes, thank you, I knew that but it's good to have it recorded here. – Brent.Longborough – 2014-12-13T08:16:11.247

I can't think of an easy way to do this. You might get a better response from the cygwin mailing list where most of the cygwin experts and developers hang out ...

– DavidPostill – 2014-12-13T08:20:30.173

Answers

0

See the documentation for the command-line interface to the Cygwin installer: https://cygwin.com/faq/faq.html#faq.setup.cli

It allows you to give a list of packages on the command line. You can get the list of installed packages from your 32-bit installation using the cygcheck utility (see the man page for how to list installed packages).

Fran

Posted 2014-12-13T08:04:36.453

Reputation: 4 774