Debian 11 Bullseye LogoDebian 11 Bullseye Logo


As of Debian 11 apt-key should not be used. Instead, it is recommended to use GPG keys. So, here is a quick post that explains how to use GPG keys in verification of apt packages.

Step1 - Create keyfile

curl | gpg --dearmor | sudo tee "$KEYRING" > /dev/null 2>&1
echo deb [signed-by="$KEYRING"] sarge contrib | sudo tee /etc/apt/sources.list.d/webmin.list

Also Note

Below, is an example of curl for http instead of https notice the -fsSL flag added

curl -fsSL | gpg --dearmor | sudo tee "$KEYRING" >/dev/null

The Breakdown

This is not to difficult

Leave a Reply

Your email address will not be published. Required fields are marked *