13 lines
		
	
	
		
			509 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
		
		
			
		
	
	
			13 lines
		
	
	
		
			509 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
|   | #!/usr/bin/env bash | ||
|  | # | ||
|  | # If something is very wrong in pacman, this removes the keyring and the entire custom repo, then sets up pacman's keyring again. Running the ansible playbook is necessary to get the custom repo added. | ||
|  | set -euo pipefail | ||
|  | IFS=$'\n\t' | ||
|  | DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | ||
|  | 
 | ||
|  | doas rm -rf /var/cache/pacman/custom/ /etc/pacman.d/conf.d/aurutils.conf | ||
|  | doas rm -rf /etc/pacman.d/gnupg | ||
|  | doas pacman-key --init | ||
|  | doas pacman-key --populate archlinux | ||
|  | doas pacman -S archlinux-keyring |