I'm looking to install archlinux on a server I don't have direct access to (physically speaking). For this I followed the wiki ( https://wiki.archlinux.org/index.php/In … ting_Linux ).
ARCH=x86_64 #To down the x86 packages
base_chroot=/mnt # Repertory where will be located the chroot
mkdir ${base_chroot}/archlinux
cd ${base_chroot}/archlinux
wget https://www.archlinux.org/packages/core/$ARCH/pacman/download/ --no-check-certificate --trust-server-names
wget https://www.archlinux.org/packages/core/any/pacman-mirrorlist/download/ --no-check-certificate --trust-server-names
# Now I have the down pacman packages :
# - pacman-4.0.3-3-x86_64.pkg.tar.xz
# - pacman-mirrorlist-20120908-1-any.pkg.tar.xz
# Additionnals librairies
for software_name in glibc gcc-libs binutils libssh2 curl gcc libarchive openssl xz expat ; do wget https://www.archlinux.org/packages/core/$ARCH/${software_name}/download/ --no-check-certificate --trust-server-names ; done
# I now have (with the two pacman packages) :
# - binutils-2.22-10-x86_64.pkg.tar.xz
# - curl-7.27.0-1-x86_64.pkg.tar.xz
# - expat-2.1.0-1-x86_64.pkg.tar.xz
# - gcc-4.7.1-6-x86_64.pkg.tar.xz
# - gcc-libs-4.7.1-6-x86_64.pkg.tar.xz
# - glibc-2.16.0-4-x86_64.pkg.tar.xz
# - libarchive-3.0.4-2-x86_64.pkg.tar.xz
# - libssh2-1.4.2-1-x86_64.pkg.tar.xz
# - openssl-1.0.1.c-1-x86_64.pkg.tar.xz
# - pacman-4.0.3-3-x86_64.pkg.tar.xz
# - pacman-mirrorlist-20120908-1-any.pkg.tar.xz
# - xz-5.0.4-1-x86_64.pkg.tar.xz
export LD_LIBRARY_PATH=${base_chroot}/archlinux/usr/lib:${base_chroot}/archlinux/lib:${base_chroot}/archlinux/usr/lib64:$LD_LIBRARY_PATH
# I extract all
# Note a difference from the wiki, as packages are now in .tar.xz (from tar.gz) the tar command is now tar xvJf
for f in *.pkg.tar*; do tar xvJf $f; done
nano -w /mnt/archlinux/etc/pacman.conf # To modify all the Include path of the repositories (in my case core, extra and community)
[code][core]
SigLevel = PackageRequired
Include = /mnt/archlinux/etc/pacman.d/mirrorlist
[extra]
SigLevel = PackageRequired
Include = /mnt/archlinux/etc/pacman.d/mirrorlist
[community]
SigLevel = PackageRequired
Include = /mnt/archlinux/etc/pacman.d/mirrorlist[/code]
# As I dont mind of my host OS
cd /; for f in /mnt/archlinux/pacman-*pkg.tar.xz ; do tar xvJf $f; done
Here is now the error I get
/mnt/archlinux/usr/bin/xz: 1: Syntax error: "(" unexpected
tar: Child returned status 2
tar: Error is not recoverable: exiting now
Did I do something wrong or xz 5.0.4-1-x86_64 is broken ?
]]>