Install Apt-key On A Debian, Ubuntu, Kali, Fedora And Raspbian

Install Apt-key On A Debian, Ubuntu, Kali, Fedora And Raspbian

apt-key

Key management utility for the APT Package Manager on Debian and Ubuntu.

Maintainer: APT Development Team


Section: admin

Install apt-key

  • Debian apt-get install apt Click to copy
  • Ubuntu apt-get install apt Click to copy
  • Kali Linux apt-get install apt Click to copy
  • Fedora dnf install apt Click to copy
  • Raspbian apt-get install apt Click to copy

Key management utility for the APT Package Manager on Debian and Ubuntu.

How to use apt-key?

Below are few example commands for apt-key that you can use in the terminal.

List trusted keys:
apt-key listClick to copy
Add a key to the trusted keystore:
apt-key add public_key_file.ascClick to copy
Delete a key from the trusted keystore:
apt-key del key_idClick to copy
Add a remote key to the trusted keystore:
wget -qO - https://host.tld/filename.key | apt-key add -Click to copy
Add a key from keyserver with only key id:
apt-key adv --keyserver pgp.mit.edu --recv KEYIDClick to copy
Installing apt-key command is simple. just copy one of the above commands for your operating system and paste it into terminal. This command is available for Debian, Ubuntu, Kali, Fedora and Raspbian operating systems. Once you run the command it will install the latest version of apt-key 2026 package in your OS.