diff --git a/pages/linux/pacman-key.md b/pages/linux/pacman-key.md new file mode 100644 index 0000000000..4d89c8fd6b --- /dev/null +++ b/pages/linux/pacman-key.md @@ -0,0 +1,36 @@ +# pacman-key + +> Wrapper script for GnuPG used to manage pacman's keyring. +> More information: . + +- Initialize the pacman keyring: + +`sudo pacman-key --init` + +- Add the default ArchLinux 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}}"`