pacman-key
linux
Wrapper script for GnuPG used to manage pacman's keyring. See also: `pacman`.
More info →Options (5)
-l, --list-keysbooleanList keys from the public keyring
Example:
pacman-key {{[-l|--list-keys]}}-a, --addbooleanAdd the specified keys
Example:
sudo pacman-key {{[-a|--add]}} {{path/to/keyfile.gpg}}-r, --recv-keysbooleanReceive a key from a key server
Example:
sudo pacman-key {{[-r|--recv-keys]}} "{{uid|name|email}}"-f, --fingerbooleanPrint the fingerprint of a specific key
Example:
pacman-key {{[-f|--finger]}} "{{uid|name|email}}"-d, --deletebooleanRemove a specific key
Example:
sudo pacman-key {{[-d|--delete]}} "{{uid|name|email}}"Examples (8)
Initialize the `pacman` keyring
sudo pacman-key --initAdd the default Arch Linux keys
sudo pacman-key --populateList keys from the public keyring
pacman-key [-l|--list-keys]Add the specified keys
sudo pacman-key [-a|--add] path/to/keyfile.gpgReceive a key from a key server
sudo pacman-key [-r|--recv-keys] "uid|name|email"Print the fingerprint of a specific key
pacman-key [-f|--finger] "uid|name|email"Sign an imported key locally
sudo pacman-key --lsign-key "uid|name|email"Remove a specific key
sudo pacman-key [-d|--delete] "uid|name|email"made by @shridhargupta | data from tldr-pages