12 lines
490 B
Bash
Executable file
12 lines
490 B
Bash
Executable file
#!/bin/bash
|
|
# Refresh mirrorlist
|
|
sudo reflector --latest 5 --age 2 --fastest 5 --protocol https --sort rate --save /etc/pacman.d/mirrorlist && cat /etc/pacman.d/mirrorlist
|
|
|
|
# Check for keyring update & update as needed
|
|
if pacman -Qs blackarch-keyring; then
|
|
sudo pacman -Sy archlinux-keyring blackarch-keyring chaotic-keyring --needed && pacman -Su
|
|
else pacman -Sy archlinux-keyring chaotic-keyring --needed && pacman -Su
|
|
fi
|
|
|
|
# Update mlocate index
|
|
pacman -Qs mlocate && sudo updatedb
|