Benutzer-Werkzeuge

Webseiten-Werkzeuge


it-wiki:linux:debian_apt_trusted_gpg

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Nächste Überarbeitung
Vorhergehende Überarbeitung
it-wiki:linux:debian_apt_trusted_gpg [2022/11/11 19:55] – angelegt markoit-wiki:linux:debian_apt_trusted_gpg [2022/11/11 19:57] (aktuell) – [You have already added the key in /etc/apt/trusted.gpg file] marko
Zeile 9: Zeile 9:
 abhishek@itsfoss:~$ sudo apt-key list abhishek@itsfoss:~$ sudo apt-key list
 [sudo] password for abhishek:  [sudo] password for abhishek: 
-Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)).+Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key%%(8)%%).
 /etc/apt/trusted.gpg /etc/apt/trusted.gpg
 -------------------- --------------------
Zeile 15: Zeile 15:
       F9A2 1197 6ED6 62F0 0E59  361E 5E3C 45D7 B312 C643       F9A2 1197 6ED6 62F0 0E59  361E 5E3C 45D7 B312 C643
 uid           [ unknown] Spotify Public Repository Signing Key <tux@spotify.com> uid           [ unknown] Spotify Public Repository Signing Key <tux@spotify.com>
-</code+</code>
 Copy the last 8 characters of the second line under pub. In my case, it is ''B312 C643''. You’ll have to remove the space between the numbers and use it like this: Copy the last 8 characters of the second line under pub. In my case, it is ''B312 C643''. You’ll have to remove the space between the numbers and use it like this:
-''sudo apt-key export B312C643 | sudo gpg --dearmour -o /etc/apt/trusted.gpg.d/spotify.gpg''+<code bash> 
 +sudo apt-key export B312C643 | sudo gpg --dearmour -o /etc/apt/trusted.gpg.d/spotify.gpg 
 +</code>
 The output file could be named anything but it is better to use a name that is associated with the package or repository. The output file could be named anything but it is better to use a name that is associated with the package or repository.
  
 The gpg ''--dearmour'' part is important because the mechanism expects you to have the keys in binary format.  The gpg ''--dearmour'' part is important because the mechanism expects you to have the keys in binary format. 
it-wiki/linux/debian_apt_trusted_gpg.1668196514.txt.gz · Zuletzt geändert: von marko