1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-22 06:02:18 +02:00
tldr/pages/linux/apt-key.md
Managor ae436c1b00
linux/*: add option placeholders (#16192)
* batch1

* batch2

* batch3

* batch4

* Update matchpathcon.md

* Update pages/linux/arecord.md

Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com>

* Update pages/linux/arecord.md

Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com>

* Update pages/linux/arecord.md

Co-authored-by: Wiktor Perskawiec <git@spageektti.cc>

---------

Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com>
Co-authored-by: Wiktor Perskawiec <git@spageektti.cc>
2025-04-19 21:21:53 +00:00

666 B

apt-key

Key management utility for the APT Package Manager on Debian and Ubuntu. Note: apt-key is now deprecated (except for the use of apt-key del in maintainer scripts). More information: https://manned.org/apt-key.8.

  • List trusted keys:

apt-key list

  • Add a key to the trusted keystore:

apt-key add {{public_key_file.asc}}

  • Delete a key from the trusted keystore:

apt-key del {{key_id}}

  • Add a remote key to the trusted keystore:

wget {{[-qO|--quiet --output-document]}} - {{https://host.tld/filename.key}} | apt-key add -

  • Add a key from keyserver with only key ID:

apt-key adv --keyserver {{pgp.mit.edu}} --recv {{KEYID}}