scripts_archlinux: install dev tools as dependencies to ease template cleanup

This commit is contained in:
Olivier Medoc 2013-02-08 11:30:47 +01:00 committed by Marek Marczykowski
parent 13c8c08d29
commit 2333bf24c0
3 changed files with 3 additions and 7 deletions

View File

@ -4,6 +4,8 @@ echo "Mounting archlinux install system into archlinux_dvd..."
sudo mount root-image.fs archlinux_dvd sudo mount root-image.fs archlinux_dvd
echo $INSTALLDIR echo $INSTALLDIR
echo "--> Installing yaourt make dependencies..."
sudo ./archlinux_dvd/usr/bin/arch-chroot $INSTALLDIR sh -c 'pacman -S --asdeps binutils yajl gcc make'
echo "--> Installing yaourt..." echo "--> Installing yaourt..."
sudo ./archlinux_dvd/usr/bin/arch-chroot $INSTALLDIR sh -c 'cd tmp && wget https://aur.archlinux.org/packages/pa/package-query/package-query.tar.gz && tar xzvf package-query.tar.gz && cd package-query && makepkg --asroot && pacman --noconfirm -U package-query-*.pkg.tar.xz' sudo ./archlinux_dvd/usr/bin/arch-chroot $INSTALLDIR sh -c 'cd tmp && wget https://aur.archlinux.org/packages/pa/package-query/package-query.tar.gz && tar xzvf package-query.tar.gz && cd package-query && makepkg --asroot && pacman --noconfirm -U package-query-*.pkg.tar.xz'

View File

@ -8,9 +8,6 @@ echo "--> Starting cleanup actions"
cleanuppkgs=`sudo ./archlinux_dvd/usr/bin/arch-chroot $INSTALLDIR pacman -Qdt | cut -d " " -f 1` cleanuppkgs=`sudo ./archlinux_dvd/usr/bin/arch-chroot $INSTALLDIR pacman -Qdt | cut -d " " -f 1`
sudo ./archlinux_dvd/usr/bin/arch-chroot $INSTALLDIR pacman --noconfirm -Rsc $cleanuppkgs sudo ./archlinux_dvd/usr/bin/arch-chroot $INSTALLDIR pacman --noconfirm -Rsc $cleanuppkgs
# Remove yaourt dependencies
sudo ./archlinux_dvd/usr/bin/arch-chroot $INSTALLDIR pacman --noconfirm -Rsc binutils yajl gcc make
# Clean pacman cache # Clean pacman cache
sudo ./archlinux_dvd/usr/bin/arch-chroot $INSTALLDIR pacman --noconfirm -Scc sudo ./archlinux_dvd/usr/bin/arch-chroot $INSTALLDIR pacman --noconfirm -Scc

View File

@ -12,7 +12,4 @@ ttf-dejavu
ttf-freefont ttf-freefont
wget wget
zsh zsh
binutils xfce4-terminal
yajl
gcc
make