arcolinuxz
3 years ago
1 changed files with 67 additions and 0 deletions
@ -0,0 +1,67 @@ |
|||||||
|
#!/bin/bash |
||||||
|
#set -e |
||||||
|
################################################################################################################## |
||||||
|
# Author : Erik Dubois |
||||||
|
# Website : https://www.erikdubois.be |
||||||
|
# Website : https://www.alci.online |
||||||
|
# Website : https://www.ariser.eu |
||||||
|
# Website : https://www.arcolinux.info |
||||||
|
# Website : https://www.arcolinux.com |
||||||
|
# Website : https://www.arcolinuxd.com |
||||||
|
# Website : https://www.arcolinuxb.com |
||||||
|
# Website : https://www.arcolinuxiso.com |
||||||
|
# Website : https://www.arcolinuxforum.com |
||||||
|
################################################################################################################## |
||||||
|
# |
||||||
|
# DO NOT JUST RUN THIS. EXAMINE AND JUDGE. RUN AT YOUR OWN RISK. |
||||||
|
# |
||||||
|
################################################################################################################## |
||||||
|
#tput setaf 0 = black |
||||||
|
#tput setaf 1 = red |
||||||
|
#tput setaf 2 = green |
||||||
|
#tput setaf 3 = yellow |
||||||
|
#tput setaf 4 = dark blue |
||||||
|
#tput setaf 5 = purple |
||||||
|
#tput setaf 6 = cyan |
||||||
|
#tput setaf 7 = gray |
||||||
|
#tput setaf 8 = light blue |
||||||
|
################################################################################################################## |
||||||
|
|
||||||
|
echo "###############################################################################" |
||||||
|
echo "Removing the pacman databases" |
||||||
|
echo "###############################################################################" |
||||||
|
echo |
||||||
|
sudo rm /var/lib/pacman/sync/* |
||||||
|
echo |
||||||
|
|
||||||
|
echo "###############################################################################" |
||||||
|
echo "Removing /etc/pacman.d/gnupg files" |
||||||
|
echo "###############################################################################" |
||||||
|
echo |
||||||
|
sudo rm -rf /etc/pacman.d/gnupg/* |
||||||
|
echo |
||||||
|
|
||||||
|
echo "###############################################################################" |
||||||
|
echo "Initialize pacman keys" |
||||||
|
echo "###############################################################################" |
||||||
|
echo |
||||||
|
sudo pacman-key --init |
||||||
|
echo |
||||||
|
|
||||||
|
echo "###############################################################################" |
||||||
|
echo "Populating keyring" |
||||||
|
echo "###############################################################################" |
||||||
|
echo |
||||||
|
sudo pacman-key --populate |
||||||
|
echo |
||||||
|
|
||||||
|
echo "###############################################################################" |
||||||
|
echo "Getting new databases" |
||||||
|
echo "###############################################################################" |
||||||
|
echo |
||||||
|
sudo pacman -Sy |
||||||
|
echo |
||||||
|
|
||||||
|
echo "###############################################################################" |
||||||
|
echo "### DONE ####" |
||||||
|
echo "###############################################################################" |
Loading…
Reference in new issue