* Need upgrade/update advice/procedures: Cygwin32 to Cygwin64
@ 2020-08-13 18:25 Mike O'Brien
2020-08-13 19:10 ` Marco Atzeri
0 siblings, 1 reply; 4+ messages in thread
From: Mike O'Brien @ 2020-08-13 18:25 UTC (permalink / raw)
To: cygwin
My first and only post —
I would like to upgrade/update/switch from Cygwin32 to Cygwin64 (on Win
7x64, sp1) and I'm not so sure what all the likely pitfalls may be.
Would appreciate any pertinent advice, informational links, etc. that
experienced users may wish to share. I've searched around and pieced
together a few insights, but I would be remiss not to ask here...
TIA.
Mike O'B.
--
Mater mea, et are Hibernica Pater, et Ego Hibernica quoque!
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Need upgrade/update advice/procedures: Cygwin32 to Cygwin64
2020-08-13 18:25 Need upgrade/update advice/procedures: Cygwin32 to Cygwin64 Mike O'Brien
@ 2020-08-13 19:10 ` Marco Atzeri
2020-08-15 11:49 ` Mike O'Brien
0 siblings, 1 reply; 4+ messages in thread
From: Marco Atzeri @ 2020-08-13 19:10 UTC (permalink / raw)
To: cygwin
[-- Attachment #1: Type: text/plain, Size: 852 bytes --]
On 13.08.2020 20:25, Mike O'Brien via Cygwin wrote:
> My first and only post —
>
> I would like to upgrade/update/switch from Cygwin32 to Cygwin64 (on Win
> 7x64, sp1) and I'm not so sure what all the likely pitfalls may be.
> Would appreciate any pertinent advice, informational links, etc. that
> experienced users may wish to share. I've searched around and pieced
> together a few insights, but I would be remiss not to ask here...
>
> TIA.
>
> Mike O'B.
>
duplicate installation with the attached script
./cyg-reinstall.sh -A
sed -e "s/setup-x86/setup-x86_64/" cyg-reinstall-x86.bat >
cyg-reinstall-x86_64.bat
run the "cyg-reinstall-x86_64.bat" script in the same directory of
"setup-x86_64.exe"
after you can use your 32bit to copy the /home/<your_user>
and all the content of "/etc" that you have customized.
Regards
Marco
[-- Attachment #2: cyg-reinstall.sh --]
[-- Type: text/plain, Size: 1502 bytes --]
#!/bin/bash
# Create a batch file to reinstall using setup-{ARCH}.exe
# all packages or the ones reported as incomplete
print_error=1
if [ $# -eq 1 ]
then
if [ $1 == "-I" ]
then
lista=$(mktemp)
cygcheck -c | grep "Incomplete" > $lista
print_error=0
fi
if [ $1 == "-A" ]
then
lista=$(mktemp)
cygcheck -cd | sed -e "1,2d" > $lista
print_error=0
fi
fi
if [ $# -eq 2 ]
then
if [ $1 == "-f" ]
then
lista=$2
print_error=0
fi
fi
# error message if options are incorrect.
if [ $print_error -eq 1 ]
then
echo -n "Usage : " $(basename $0)
echo " [ -A | -I | -f filelist ]"
echo " create cyg-reinstall-{ARC}.bat from"
echo " options"
echo " -A : All packages as reported by cygcheck"
echo " -I : incomplete packages as reported by cygcheck"
echo " -f : packages in filelist (one per row)"
exit 1
fi
if [ $(arch) == "x86_64" ]
then
A="x86_64"
else
A="x86"
fi
# writing header
echo -n -e "setup-${A}.exe " > cyg-reinstall-${A}.bat
# option -x remove and -P install
# for re-install packages we need both
if [ $1 == "-I" ]
then
awk 'BEGIN{printf(" -x ")} NR==1{printf $1}{printf ",%s", $1}' ${lista} >> cyg-reinstall-${A}.bat
fi
awk 'BEGIN{printf(" -P ")} NR==1{printf $1}{printf ",%s", $1} END { printf "\r\n pause "}' ${lista} >> cyg-reinstall-${A}.bat
# execution permission for the script
chmod +x cyg-reinstall-${A}.bat
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Need upgrade/update advice/procedures: Cygwin32 to Cygwin64
2020-08-13 19:10 ` Marco Atzeri
@ 2020-08-15 11:49 ` Mike O'Brien
2020-08-15 13:31 ` Marco Atzeri
0 siblings, 1 reply; 4+ messages in thread
From: Mike O'Brien @ 2020-08-15 11:49 UTC (permalink / raw)
To: Marco Atzeri, cygwin
On 8/13/2020 3:10 PM, Marco Atzeri via Cygwin wrote:
> On 13.08.2020 20:25, Mike O'Brien via Cygwin wrote:
>> My first and only post —
>>
>> I would like to upgrade/update/switch from Cygwin32 to Cygwin64 (on
>> Win 7x64, sp1) and I'm not so sure what all the likely pitfalls may
>> be. Would appreciate any pertinent advice, informational links, etc.
>> that experienced users may wish to share. I've searched around and
>> pieced together a few insights, but I would be remiss not to ask here...
>>
>> TIA.
>>
>> Mike O'B.
>>
>
> duplicate installation with the attached script
>
> ./cyg-reinstall.sh -A
> sed -e "s/setup-x86/setup-x86_64/" cyg-reinstall-x86.bat >
> cyg-reinstall-x86_64.bat
>
> run the "cyg-reinstall-x86_64.bat" script in the same directory of
> "setup-x86_64.exe"
>
> after you can use your 32bit to copy the /home/<your_user>
> and all the content of "/etc" that you have customized.
>
> 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
All done and looking good!
That wasn't painful at all — much to my surprise . . .
Seriously though, thank you, Marco.
Mike O'B.
--
Mater mea, et are Hibernica Pater, et Ego Hibernica quoque!
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Need upgrade/update advice/procedures: Cygwin32 to Cygwin64
2020-08-15 11:49 ` Mike O'Brien
@ 2020-08-15 13:31 ` Marco Atzeri
0 siblings, 0 replies; 4+ messages in thread
From: Marco Atzeri @ 2020-08-15 13:31 UTC (permalink / raw)
To: Mike O'Brien, cygwin
On 15.08.2020 13:49, Mike O'Brien wrote:
> On 8/13/2020 3:10 PM, Marco Atzeri via Cygwin wrote:
>> On 13.08.2020 20:25, Mike O'Brien via Cygwin wrote:
>>> My first and only post —
>>>
>>> I would like to upgrade/update/switch from Cygwin32 to Cygwin64 (on
>>> Win 7x64, sp1) and I'm not so sure what all the likely pitfalls may
>>> be. Would appreciate any pertinent advice, informational links, etc.
>>> that experienced users may wish to share. I've searched around and
>>> pieced together a few insights, but I would be remiss not to ask here...
>>>
>>> TIA.
>>>
>>> Mike O'B.
>>>
>>
>> duplicate installation with the attached script
>>
>> ./cyg-reinstall.sh -A
>> sed -e "s/setup-x86/setup-x86_64/" cyg-reinstall-x86.bat >
>> cyg-reinstall-x86_64.bat
>>
>> run the "cyg-reinstall-x86_64.bat" script in the same directory of
>> "setup-x86_64.exe"
>>
>> after you can use your 32bit to copy the /home/<your_user>
>> and all the content of "/etc" that you have customized.
>>
>> Regards
>> Marco
>>
>
> All done and looking good!
> That wasn't painful at all — much to my surprise . . .
> Seriously though, thank you, Marco.
you are welcome
> Mike O'B.
> --
> Mater mea, et are Hibernica Pater, et Ego Hibernica quoque!
I was not aware that Ireland was called Hibernia in the old times.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2020-08-15 13:31 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-13 18:25 Need upgrade/update advice/procedures: Cygwin32 to Cygwin64 Mike O'Brien
2020-08-13 19:10 ` Marco Atzeri
2020-08-15 11:49 ` Mike O'Brien
2020-08-15 13:31 ` Marco Atzeri
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).