mirror of
https://github.com/edu4rdshl/linuxscripts.git
synced 2026-07-17 23:24:52 +00:00
Remove useless script
This commit is contained in:
parent
3a9c2d4cf8
commit
6102260b2a
1 changed files with 0 additions and 22 deletions
|
|
@ -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
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue