pacman-key

Wrapper script for GnuPG used to manage pacman's keyring.

TLDR

Initialize the pacman keyring

$ sudo pacman-key --init
copy

Add the default ArchLinux keys

$ sudo pacman-key --populate [archlinux]
copy

List keys from the public keyring

$ pacman-key --list-keys
copy

Add the specified keys

$ sudo pacman-key --add [path/to/keyfile.gpg]
copy

Receive a key from a key server

$ sudo pacman-key --recv-keys "[uid|name|email]"
copy

Print the fingerprint of a specific key

$ pacman-key --finger "[uid|name|email]"
copy

Sign an imported key locally

$ sudo pacman-key --lsign-key "[uid|name|email]"
copy

Remove a specific key

$ sudo pacman-key --delete "[uid|name|email]"
copy

Copied to clipboard
3commas