Upgrade Arch Linux From I686 To X86_64

June 18, 2013

Contents

用arch快一年了, 之前一直用的是i686, 换到x86_64的原因:

下面是升级方法

grep --color '\<lm\>' /proc/cpuinfo

mount /dev/sda7 /mnt
mount /dev/sda5 /mnt/home
mount /dev/sda8 /mnt/opt
#!/usr/bin/bash
MOUNTED_INSTALL='/mnt'
TEMP_FILE='/tmp/packages.list'
pacman --root $MOUNTED_INSTALL -Sy
pacman --root $MOUNTED_INSTALL --cachedir $MOUNTED_INSTALL/var/cache/pacman/pkg --noconfirm -Sg base base-devel
pacman --root $MOUNTED_INSTALL -Qq > $TEMP_FILE
for PKG in $(cat $TEMP_FILE) ; do
   pacman --root $MOUNTED_INSTALL --cachedir $MOUNTED_INSTALL/var/cache/pacman/pkg --noconfirm -S $PKG
done