Basic apt key management | Linux Today

Basic apt key management

Written By
Web Webster
Web Webster
Sep 30, 2009

[ Thanks to jhansonxi for this link.
]

“The “–no-default-keyring” and “–keyring” tells gpg
to use only the specified apt trusted keyring. Next, find the key
you want to export from the list and specify either the key ID or
user ID with the following command:

 gpg --no-default-keyring --keyring /etc/apt/trusted.gpg --armor --export A1F196A8>pidgin.gpg

“The “–armor” tells gpg to output an encoded text key instead
of binary one. The Pidgin package signing key ID is A1F196A8 and it
is captured to a “pidgin.gpg” file in the current directory. Then
you copy the key file to your other systems and add it to their apt
keyrings using either Synaptic (Settings > Repositories >
Authentication > Import Key File) or the apt-key command in a
terminal:”


Complete Story

Web Webster

Web Webster

Web Webster has more than 20 years of writing and editorial experience in the tech sector. He’s written and edited news, demand generation, user-focused, and thought leadership content for business software solutions, consumer tech, and Linux Today, he edits and writes for a portfolio of tech industry news and analysis websites including webopedia.com, and DatabaseJournal.com.

Linux Today Logo

LinuxToday is a trusted, contributor-driven news resource supporting all types of Linux users. Our thriving international community engages with us through social media and frequent content contributions aimed at solving problems ranging from personal computing to enterprise-level IT operations. LinuxToday serves as a home for a community that struggles to find comparable information elsewhere on the web.

Property of TechnologyAdvice. © 2026 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.