pacman-key

Wrapper script for GnuPG used to manage pacman's keyring. See also: pacman. More information: <https://man.archlinux.org/man/pacman-key>.

Install

All systems
curl cmd.cat/pacman-key.sh
Debian Debian
apt-get install pacman
Ubuntu
apt-get install pacman
Alpine
apk add pacman
Arch Arch Linux
pacman -S pacman
image/svg+xml Kali Linux
apt-get install pacman
Fedora
dnf install pacman
Windows (WSL2)
sudo apt-get update sudo apt-get install pacman
Raspbian
apt-get install pacman
Docker
docker run cmd.cat/pacman-key pacman-key powered by Commando

Wrapper script for GnuPG used to manage pacman's keyring. See also: pacman. More information: <https://man.archlinux.org/man/pacman-key>.

  • Initialize the pacman keyring:
    sudo pacman-key --init
  • Add the default Arch Linux keys:
    sudo pacman-key --populate archlinux
  • List keys from the public keyring:
    pacman-key --list-keys
  • Add the specified keys:
    sudo pacman-key --add path/to/keyfile.gpg
  • Receive a key from a key server:
    sudo pacman-key --recv-keys "uid|name|email"
  • Print the fingerprint of a specific key:
    pacman-key --finger "uid|name|email"
  • Sign an imported key locally:
    sudo pacman-key --lsign-key "uid|name|email"
  • Remove a specific key:
    sudo pacman-key --delete "uid|name|email"

© tl;dr; authors and contributors