diff options
Diffstat (limited to 'ar/.local/bin/pacerror')
| -rwxr-xr-x | ar/.local/bin/pacerror | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/ar/.local/bin/pacerror b/ar/.local/bin/pacerror new file mode 100755 index 0000000..ec45002 --- /dev/null +++ b/ar/.local/bin/pacerror @@ -0,0 +1,27 @@ +#!/bin/sh + +# Remove existing keyring and package database to start fresh +sudo rm -rf /etc/pacman.d/gnupg /var/lib/pacman/sync + +# Reinitialize the pacman keyring +sudo pacman-key --init + +# Install updated keyrings for Arch and Artix +sudo pacman -Sy archlinux-keyring artix-keyring + +# Refresh all keys to ensure they're up-to-date +sudo pacman-key --refresh-keys + +# Populate the keyring with default keys +sudo pacman-key --populate archlinux artix + +# Clear the package cache +sudo pacman -Scc --noconfirm + +# Forcefully refresh the package databases +sudo pacman -Syy + +# Update the system packages +sudo pacman -Syu + +remaps |
