Last active
May 30, 2022 21:49
-
-
Save Albus/73513c4c4da0359e0aec2092566eb4b8 to your computer and use it in GitHub Desktop.
Импорт ключей gpg в apt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# добавить удалённый файл ключей | |
curl -s URL | sudo gpg --no-default-keyring --keyring gnupg-ring:/etc/apt/trusted.gpg.d/ИМЯ.gpg --import | |
# добавить локальный файл ключей | |
cat ФАЙЛ.pub | sudo gpg --no-default-keyring --keyring gnupg-ring:/etc/apt/trusted.gpg.d/ИМЯ.gpg --import | |
# можно получить ключ с сервера ключей: | |
sudo gpg --no-default-keyring --keyring gnupg-ring:/etc/apt/trusted.gpg.d/aptly.gpg \ | |
--keyserver keyserver.ubuntu.com --recv-keys A0546A43624A8331 | |
# просмотреть информацию об установленных ключах | |
gpg --list-keys --keyring /etc/apt/trusted.gpg.d/ФАЙЛ.gpg | |
# или | |
apt-key list | |
# удалить ключ | |
sudo apt-key del 7D8D08F6 | |
# удалить все ключи, добавленные с помощью apt-key add | |
sudo rm -f /etc/apt/trusted.gpg |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment