Remove useless script

This commit is contained in:
Eduard Tolosa 2018-11-18 21:36:49 -05:00
parent 3a9c2d4cf8
commit 6102260b2a

View file

@ -1,22 +0,0 @@
#!/bin/bash
arch=$(uname -m)
mirror=http://mirror.rit.edu/archlinux
# link to cache (or download) and extract: openssl,libarchive,libfetch,pacman
cd /tmp
for pkg in openssl-1.0.0-2 libarchive-2.8.3-3 libfetch-2.30-3 pacman-3.3.3-5; do
pkgname=${pkg}-${arch}.pkg.tar.gz
if [[ -e /var/cache/pacman/pkg/${pkgname} ]]; then
ln -sf /var/cache/pacman/pkg/${pkgname} .
else
/usr/local/bin/wget ${mirror}/core/os/${arch}/${pkgname} || exit 1
fi
tar -xvpf ${pkgname} -C / --exclude .PKGINFO --exclude .INSTALL || exit 1
done
# now reinstall using pacman to update the local pacman db
pacman -Sf openssl libarchive libfetch pacman || exit 1
# now update your system
pacman -Syu