delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2023/06/15/10:40:29

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 15DB23857737
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1686839985;
bh=RDq2ndD7o26djZhRJmCBxm0XRGxCQX8ZbfAvE7m2xm8=;
h=To:Cc:References:In-Reply-To:Subject:Date:List-Id:
List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe:
From:Reply-To:From;
b=WNuHGBCSSevY26HZ2liBPVwn2uwyIzL08nGS6Yw0FXNsDr+ByU14GjDlRzhvCZqer
xUduEY2632z2EqFUDHmBi4MBxEMD7+ikvat3Hl/6LexPpWtzs7XFeBZKqtuBFXU1K2
Oy55p8Dvm5CWdRIpUkcIXxu+VuggSDZnjpby9ay8=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org C3E7E3858C2F
X-mail-filterd: {"version":"1.6.0", "queueID":"4QhlL744CPz1LQpsf", "contextId":
"7aa0b3b1-a38d-45bf-ad3d-2b74d46998a8"}
X-mail-filterd: {"version":"1.6.0", "queueID":"4QhlL632FDz1LQpsd", "contextId":
"ed6daa98-3b64-4102-950c-330231ec6b86"}
X-sfr-mailing: LEGIT
X-sfr-spamrating: 36
X-sfr-spam: not-spam
To: "'marco atzeri'" <marco DOT atzeri AT gmail DOT com>
Cc: <cygwin AT cygwin DOT com>, <gilbert DOT harrus AT club-internet DOT fr>
References: <648ae4b3 DOT 170a0220 DOT 7a40 DOT c67dSMTPIN_ADDED_BROKEN AT mx DOT google DOT com>
<CAB8Xom-UV255-zUQ7Ei2dKap-Txx+U6LcaHOPwYQ2Ect5gJYTA AT mail DOT gmail DOT com>
In-Reply-To: <CAB8Xom-UV255-zUQ7Ei2dKap-Txx+U6LcaHOPwYQ2Ect5gJYTA@mail.gmail.com>
Subject: RE: help needed - transition from 32bits to 64bits
Date: Thu, 15 Jun 2023 16:39:21 +0200
Message-ID: <00e501d99f97$2f4b91a0$8de2b4e0$@harrus@club-internet.fr>
MIME-Version: 1.0
X-Mailer: Microsoft Office Outlook 12.0
Thread-Index: Admfh5mRrOi7T3eNTU+T3b5QlcUKAAADArDQ
X-Spam-Status: No, score=3.7 required=5.0 tests=BAYES_40, DKIM_SIGNED,
DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, JMQ_SPF_NEUTRAL, MSGID_MULTIPLE_AT,
RCVD_IN_BARRACUDACENTRAL, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP,
T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6
X-Spam-Level: ***
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on
server2.sourceware.org
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: gh via Cygwin <cygwin AT cygwin DOT com>
Reply-To: gh <gilbert DOT harrus AT club-internet DOT fr>
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com>
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 35FEe8Vs013445

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 DOT atzeri AT gmail DOT com] 
Sent: 15 June 2023 14:48
To: gh
Cc: cygwin AT cygwin DOT 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


-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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