extra-repo-book/update_keyring.sh

27 lines
607 B
Bash
Raw Normal View History

2024-11-08 15:09:11 +08:00
#!/bin/bash
echo "下载docker公钥..."
2024-11-08 15:09:46 +08:00
wget -qO - "https://download.docker.com/linux/debian/gpg" \
| gpg --dearmor --yes -o "usr/share/extra-repo-book/trusted.gpg.d/docker.gpg"
2024-11-08 15:09:11 +08:00
echo "完成"
2024-11-08 15:09:46 +08:00
echo ""
2024-11-08 15:09:11 +08:00
echo "下载microsoft公钥..."
2024-11-08 15:09:46 +08:00
wget -qO - "https://packages.microsoft.com/keys/microsoft.asc" \
| gpg --dearmor --yes -o "usr/share/extra-repo-book/trusted.gpg.d/microsoft.gpg"
2024-11-08 15:09:11 +08:00
echo "完成"
2024-11-08 15:09:46 +08:00
echo ""
echo "下载mysql公钥..."
2024-11-08 15:09:11 +08:00
2024-11-08 15:09:46 +08:00
wget -qO - "https://repo.mysql.com/RPM-GPG-KEY-mysql-2023" \
| gpg --dearmor --yes -o "usr/share/extra-repo-book/trusted.gpg.d/mysql.gpg"
echo "完成"
echo ""