Skip to content

Email: admin@alshowto.com

Al's Down`N Dirty KB

Al's Down`N Dirty KB

Get`Er Done

  • Home
  • Linux
  • Debian 11 apt-key Deprecated So Now What?
Debian 11 Bullseye Logo

Debian 11 apt-key Deprecated So Now What?

Posted on October 10, 2022October 12, 2022 By admin No Comments on Debian 11 apt-key Deprecated So Now What?
Linux

Intro

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

KEYRING=/usr/share/keyrings/jcameron-key.gpg
curl https://download.webmin.com/jcameron-key.asc | gpg --dearmor | sudo tee "$KEYRING" > /dev/null 2>&1
echo deb [signed-by="$KEYRING"] https://download.webmin.com/download/repository 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 http://www.webmin.com/jcameron-key.asc | gpg --dearmor | sudo tee "$KEYRING" >/dev/null

The Breakdown

This is not to difficult

Related

Tags: Debian

Post navigation

❮ Previous Post: Install K8 and Rancher2.6 on Debian11
Next Post: vpncloud on Debian 11 ❯

You may also like

Linux
Specific PHP in Apache
January 23, 2023
Linux
Debian 11 and Docker-Compose
October 15, 2022
Linux
Configure HAProxy To Serve pfSense GUI
October 14, 2022
Email
PostfixAdmin Install Latest
October 24, 2022

Leave a Reply Cancel reply

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

Copyright © 2023 Al's Down`N Dirty KB.

Theme: Oceanly Premium by ScriptsTown