public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: "gh" <gilbert.harrus@club-internet.fr>
To: "'marco atzeri'" <marco.atzeri@gmail.com>
Cc: <cygwin@cygwin.com>, <gilbert.harrus@club-internet.fr>
Subject: RE: help needed - transition from 32bits to 64bits
Date: Thu, 15 Jun 2023 16:39:21 +0200	[thread overview]
Message-ID: <00e501d99f97$2f4b91a0$8de2b4e0$@harrus@club-internet.fr> (raw)
In-Reply-To: <CAB8Xom-UV255-zUQ7Ei2dKap-Txx+U6LcaHOPwYQ2Ect5gJYTA@mail.gmail.com>

Thanks Marco, I will read and adapt the script if necessary.

Gilbert
PS: I don't want the cygwin64 directory, so as to avoid looking for everywhere I have used a hard cygwin path.

-----Original Message-----
From: marco atzeri [mailto:marco.atzeri@gmail.com] 
Sent: 15 June 2023 14:48
To: gh
Cc: cygwin@cygwin.com
Subject: Re: help needed - transition from 32bits to 64bits

On Thu, Jun 15, 2023 at 12:15 PM gh via Cygwin  wrote:
>
> Dear all,
>
> Sorry if this question was already answered somewhere in the FAQ.
>
>
>
> I am running a deprecated 32bits version, and want to switch to 
> 64bits. Install procedure is easy, but does not cover one thing : I 
> would like to preserve the list of packages I have installed, and minimize the change of paths in my windows environment (did not change anything for the last 10 years, so I don't want to dig into where are things).
>
>
>
> Currently, cygwin is in C:\cygwin, which I have moved to 
> C:\cygwin-bck. I then want to install in the now almost empty C:\cygwin, but copying there the necessary config files so that setup-x86_64.exe knows which packages to download.
>
>
>
> Thanks in advance,
>
>
>
> Gilbert
>
Hi Gilbert,

No need to rename the directory as the Cygwin 64 bit will be installed in C:\Cygwin64 folder

Attached the script that I use to reinstall my system on different computers.
It can be adapted to duplicate the 32bit in a 64 bit installation

Assuming your file list is not longer than 32K, this should work :

  chmod + x cyg-reinstall.sh
   sed -e "1d"  /etc/setup/installed.db | sed -e "s/ .*$//" > filelist.txt
  ./cyg-reinstall.sh -f  filelist.txt
  cp cyg-reinstall-x86.bat cyg-reinstall-x86_64.bat
  sed -i -e "s/setup-x86.exe/setup-x86_64.exe/" cyg-reinstall-x86_64.bat

if the  "filelist.txt" is too long you can split in multiple chunks, like:

   grep -v "^lib" filelist.txt > nolib-list.txt
   grep "^lib" filelist.txt > lib-list.txt

I usually need to split mine, as my installation hit the 32K limit of command line

 wc -l *.txt
  2608 filelist.txt
  1297 lib-list.txt
  1311 nolib-list.txt

 ls -1s *.txt
40K filelist.txt
20K lib-list.txt
20K nolib-list.txt

Regards
Marco


  parent reply	other threads:[~2023-06-15 14:39 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <648ae4b3.170a0220.7a40.c67dSMTPIN_ADDED_BROKEN@mx.google.com>
2023-06-15 12:47 ` marco atzeri
2023-06-15 12:58   ` Dan Harkless
2023-06-15 16:10     ` marco atzeri
2023-06-15 14:39   ` gh [this message]
     [not found] <43976.2997253396$1686824142@news.gmane.org>
2023-06-15 17:21 ` ASSI
2023-06-15 10:15 gh

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='00e501d99f97$2f4b91a0$8de2b4e0$@harrus@club-internet.fr' \
    --to=gilbert.harrus@club-internet.fr \
    --cc=cygwin@cygwin.com \
    --cc=marco.atzeri@gmail.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).