Kategorie

Kontakt



My status

Łatwy import kluczy do repozytoriów APT

Często przy dodawania nowych repozytoriów apt-get update krzyczy o brakujących kluczach GPG. Tutaj jest mały skrypt ułatwiający import tych kluczy.

#!/bin/bash
 
 if [ ! "$1" ]
 then
  echo "Wywołanie: $0 klucz1 klucz2 ..."
  return
 fi
 
 SERVER="hkp://wwwkeys.eu.pgp.net"
 while [ "$1" ]
 do
  echo "Importuję klucz '$1'"
  gpg --keyserver $SERVER --recv-keys $1 && gpg --armor --export $1 | apt-key add -
  shift
 done

Skrypt wywołuje się podając identyfikatory (szesnastkowy numer klucza podany przez apt-get) brakujących kluczy.

VN:F [1.9.17_1161]
Rating: 9.0/10 (2 votes cast)
VN:F [1.9.17_1161]
Rating: 0 (from 0 votes)
Łatwy import kluczy do repozytoriów APT, 9.0 out of 10 based on 2 ratings

Creative Commons License
The Łatwy import kluczy do repozytoriów APT by Paweł Kraszewski, unless otherwise expressly stated, is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Poland License. Terms and conditions beyond the scope of this license may be available at linuxpedia.pl.

Leave a Reply

  

  

  

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" cssfile="">