1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-08-10 22:55:42 +02:00
tldr/pages/linux/pacman-key.md

38 lines
812 B
Markdown
Raw Normal View History

2021-09-06 10:43:08 -03:00
# pacman-key
> Wrapper script for GnuPG used to manage pacman's keyring.
> See also: `pacman`.
> More information: <https://manned.org/pacman-key>.
2021-09-06 10:43:08 -03:00
- Initialize the `pacman` keyring:
2021-09-06 10:43:08 -03:00
`sudo pacman-key --init`
- Add the default Arch Linux keys:
2021-09-06 10:43:08 -03:00
`sudo pacman-key --populate {{archlinux}}`
- List keys from the public keyring:
2025-07-24 05:21:20 +00:00
`pacman-key {{[-l|--list-keys]}}`
2021-09-06 10:43:08 -03:00
- Add the specified keys:
2025-07-24 05:21:20 +00:00
`sudo pacman-key {{[-a|--add]}} {{path/to/keyfile.gpg}}`
2021-09-06 10:43:08 -03:00
- Receive a key from a key server:
2025-07-24 05:21:20 +00:00
`sudo pacman-key {{[-r|--recv-keys]}} "{{uid|name|email}}"`
2021-09-06 10:43:08 -03:00
- Print the fingerprint of a specific key:
2025-07-24 05:21:20 +00:00
`pacman-key {{[-f|--finger]}} "{{uid|name|email}}"`
2021-09-06 10:43:08 -03:00
- Sign an imported key locally:
`sudo pacman-key --lsign-key "{{uid|name|email}}"`
- Remove a specific key:
2025-07-24 05:21:20 +00:00
`sudo pacman-key {{[-d|--delete]}} "{{uid|name|email}}"`