1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-22 22:22:18 +02:00
tldr/pages.de/linux/apt-key.md
2022-10-16 15:02:36 -03:00

25 lines
691 B
Markdown

# apt-key
> Schlüssel-Management-Tool für den APT-Paket-Manager auf Debian und Ubuntu.
> Notiz: `apt-key` ist deprecated (außer für `apt-key del` in Maintainer Scripts).
> Weitere Informationen: <https://manpages.debian.org/latest/apt/apt-key.8.html>.
- Liste alle vertrauten Schlüssel auf:
`apt-key list`
- Füge einen Schlüssel hinzu:
`apt-key add {{public_key_file.asc}}`
- Lösche einen Schlüssel:
`apt-key del {{key_id}}`
- Füge einen Remote-Schlüssel hinzu:
`wget -qO - {{https://host.tld/filename.key}} | apt-key add -`
- Füge einen Schlüssel von einem Schlüsselserver hinzu nur mit der Schlüssel-ID:
`apt-key adv --keyserver {{pgp.mit.edu}} --recv {{KEYID}}`