blob: ec4500215acee024ddb5f3fb427164957cdfae4b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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
|