Última actividad 6 months ago

Jan Wagner revisó este gist 5 years ago. Ir a la revisión

1 file changed, 1 insertion, 1 deletion

crossgrade_jessie_i386_amd64.sh

@@ -28,7 +28,7 @@ dpkg --print-foreign-architectures
28 28 cd /var/cache/apt/archives/ && \
29 29 apt-get download $(dpkg -l | grep '^.i' | grep -vE " (amd64|all) " | sed s/:i386// | awk '{print $2":amd64"}'|xargs) && \
30 30 apt-get download libblas-common:amd64 && \
31 - mv /var/cache/apt/archives/libapache2-mod-php*.deb /tmp/ && \
31 + mv /var/cache/apt/archives/libapache2-mod-*.deb /tmp/ && \
32 32 dpkg --install /var/cache/apt/archives/lib*.deb /var/cache/apt/archives/perl*.deb /var/cache/apt/archives/mlock_*.deb && \
33 33 mkdir /tmp/archives/ && \
34 34 mv /var/cache/apt/archives/lib*.deb /var/cache/apt/archives/perl*.deb /var/cache/apt/archives/mlock_*.deb /tmp/archives/ && \

Jan Wagner revisó este gist 6 years ago. Ir a la revisión

1 file changed, 2 insertions, 1 deletion

crossgrade_jessie_i386_amd64.sh

@@ -1,4 +1,5 @@
1 - # Crossgrade jessie over to amd64 along https://stbuehler.de/blog/article/2017/06/28/debian_stretch__upgrade_32-bit_to_64-bit.html, but on jessie downloading the correct packages is a bit more complicated
1 + # Crossgrade jessie over to amd64 along https://stbuehler.de/blog/article/2017/06/28/debian_stretch__upgrade_32-bit_to_64-bit.html,
2 + # but on jessie downloading the correct packages is a bit more complicated
2 3
3 4 aptitude search ~M | cut -c5- | cut -d' ' -f1 > aptitude.auto
4 5 dpkg -l | grep '^ii' | awk '{print $2}' > packages

waja revisó este gist 6 years ago. Ir a la revisión

1 file changed, 58 insertions

crossgrade_jessie_i386_amd64.sh(archivo creado)

@@ -0,0 +1,58 @@
1 + # Crossgrade jessie over to amd64 along https://stbuehler.de/blog/article/2017/06/28/debian_stretch__upgrade_32-bit_to_64-bit.html, but on jessie downloading the correct packages is a bit more complicated
2 +
3 + aptitude search ~M | cut -c5- | cut -d' ' -f1 > aptitude.auto
4 + dpkg -l | grep '^ii' | awk '{print $2}' > packages
5 + dpkg --print-architecture
6 + dpkg --print-foreign-architectures
7 + dpkg --add-architecture amd64
8 + apt-get update
9 +
10 + apt-get --no-install-recommends install linux-image-amd64:amd64
11 + reboot
12 + uname -r
13 +
14 + apt-get clean
15 + apt-get -y --no-install-recommends --download-only install dash:amd64 bash:amd64
16 + dpkg --install /var/cache/apt/archives/*.deb
17 + dpkg --install /var/cache/apt/archives/dash_*.deb /var/cache/apt/archives/bash_*.deb
18 +
19 + apt-get clean
20 + apt-get -y --no-install-recommends --download-only install dpkg:amd64 apt:amd64 aptitude:amd64 apt-utils:amd64
21 + dpkg --install /var/cache/apt/archives/*.deb
22 + dpkg --install /var/cache/apt/archives/dpkg_*.deb
23 +
24 + dpkg --print-architecture
25 + dpkg --print-foreign-architectures
26 +
27 + cd /var/cache/apt/archives/ && \
28 + apt-get download $(dpkg -l | grep '^.i' | grep -vE " (amd64|all) " | sed s/:i386// | awk '{print $2":amd64"}'|xargs) && \
29 + apt-get download libblas-common:amd64 && \
30 + mv /var/cache/apt/archives/libapache2-mod-php*.deb /tmp/ && \
31 + dpkg --install /var/cache/apt/archives/lib*.deb /var/cache/apt/archives/perl*.deb /var/cache/apt/archives/mlock_*.deb && \
32 + mkdir /tmp/archives/ && \
33 + mv /var/cache/apt/archives/lib*.deb /var/cache/apt/archives/perl*.deb /var/cache/apt/archives/mlock_*.deb /tmp/archives/ && \
34 + dpkg --install /var/cache/apt/archives/lib*.deb /var/cache/apt/archives/*python*.deb && \
35 + mv /var/cache/apt/archives/lib*.deb /var/cache/apt/archives/*python*.deb /tmp/archives/ && \
36 + mv /tmp/libapache2-mod-php*.deb /var/cache/apt/archives/ && \
37 + dpkg --install /var/cache/apt/archives/lib*.deb /var/cache/apt/archives/*php*.deb /var/cache/apt/archives/*apache2*.deb /var/cache/apt/archives/sed_4.2.2-4+deb8u1_amd64.deb /var/cache/apt/archives/lsof_4.86+dfsg-1_amd64.deb && \
38 + mv /var/cache/apt/archives/lib*.deb /var/cache/apt/archives/*php*.deb /var/cache/apt/archives/*apache2*.deb /var/cache/apt/archives/sed_4.2.2-4+deb8u1_amd64.deb /var/cache/apt/archives/lsof_4.86+dfsg-1_amd64.deb /tmp/archives/ && \
39 + dpkg --install /var/cache/apt/archives/lib*.deb /var/cache/apt/archives/*openss*.deb && \
40 + mv /var/cache/apt/archives/lib*.deb /var/cache/apt/archives/*openss*.deb /tmp/archives/ && \
41 + dpkg --install /var/cache/apt/archives/lib*.deb /var/cache/apt/archives/*mysql*.deb && \
42 + mv /var/cache/apt/archives/lib*.deb /var/cache/apt/archives/*mysql*.deb /tmp/archives/ && \
43 + dpkg -i /var/cache/apt/archives/*.deb && \
44 + mv /var/cache/apt/archives/*.deb /tmp/archives/ && \
45 + cd
46 +
47 + apt-get clean
48 + apt-get --download-only -y --no-install-recommends install `dpkg -l | grep '^.i' | awk '{print $2}' | grep :i386 | sed -e 's/\(.*\):i386/\1:i386- \1:amd64/'`
49 + dpkg --install /var/cache/apt/archives/*.deb
50 +
51 + apt-get remove `dpkg -l | grep '^.i' | awk '{print $2}' | grep :i386`
52 + apt-get autoremove
53 +
54 + aptitude markauto `cat aptitude.auto | sed -e s/:i386/:amd64/`
55 +
56 + diff -u <(sed s/:.*// packages | uniq) <(dpkg -l | grep '^ii' | awk '{print $2}' | sed s/:.*// | uniq) | less
57 +
58 + dpkg --remove-architecture i386
Siguiente Anterior