'\" t .\" Title: apt-key .\" Author: Jason Gunthorpe .\" Generator: DocBook XSL Stylesheets v1.78.1 .\" Date: 09\ \&June\ \&2012 .\" Manual: APT .\" Source: APT 1.0.9.8.4 .\" Language: English .\" .TH "APT\-KEY" "8" "09\ \&June\ \&2012" "APT 1.0.9.8.4" "APT" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" apt-key \- APT key management utility .SH "SYNOPSIS" .HP \w'\fBapt\-key\fR\ 'u \fBapt\-key\fR [\fB\-\-keyring\ \fR\fB\fIfilename\fR\fR] {add\ \fIfilename\fR | del\ \fIkeyid\fR | export\ \fIkeyid\fR | exportall | list | finger | adv | update | net\-update | {\-v\ |\ \-\-version} | {\-h\ |\ \-\-help}} .SH "DESCRIPTION" .PP \fBapt\-key\fR is used to manage the list of keys used by apt to authenticate packages\&. Packages which have been authenticated using these keys will be considered trusted\&. .SH "COMMANDS" .PP \fBadd\fR \fB\fIfilename\fR\fR .RS 4 Add a new key to the list of trusted keys\&. The key is read from the filename given with the parameter \fIfilename\fR or if the filename is \- from standard input\&. .RE .PP \fBdel\fR \fB\fIkeyid\fR\fR .RS 4 Remove a key from the list of trusted keys\&. .RE .PP \fBexport\fR \fB\fIkeyid\fR\fR .RS 4 Output the key \fIkeyid\fR to standard output\&. .RE .PP \fBexportall\fR .RS 4 Output all trusted keys to standard output\&. .RE .PP \fBlist\fR .RS 4 List trusted keys\&. .RE .PP \fBfinger\fR .RS 4 List fingerprints of trusted keys\&. .RE .PP \fBadv\fR .RS 4 Pass advanced options to gpg\&. With adv \-\-recv\-key you can download the public key\&. .RE .PP \fBupdate\fR .RS 4 Update the local keyring with the archive keyring and remove from the local keyring the archive keys which are no longer valid\&. The archive keyring is shipped in the archive\-keyring package of your distribution, e\&.g\&. the debian\-archive\-keyring package in Debian\&. .RE .PP \fBnet\-update\fR .RS 4 Perform an update working similarly to the \fBupdate\fR command above, but get the archive keyring from a URI instead and validate it against a master key\&. This requires an installed \fBwget\fR(1) and an APT build configured to have a server to fetch from and a master keyring to validate\&. APT in Debian does not support this command, relying on \fBupdate\fR instead, but Ubuntu\*(Aqs APT does\&. .RE .SH "OPTIONS" .PP Note that options need to be defined before the commands described in the previous section\&. .PP \fB\-\-keyring\fR \fB\fIfilename\fR\fR .RS 4 With this option it is possible to specify a particular keyring file the command should operate on\&. The default is that a command is executed on the trusted\&.gpg file as well as on all parts in the trusted\&.gpg\&.d directory, though trusted\&.gpg is the primary keyring which means that e\&.g\&. new keys are added to this one\&. .RE .SH "FILES" .PP /etc/apt/trusted\&.gpg .RS 4 Keyring of local trusted keys, new keys will be added here\&. Configuration Item: Dir::Etc::Trusted\&. .RE .PP /etc/apt/trusted\&.gpg\&.d/ .RS 4 File fragments for the trusted keys, additional keyrings can be stored here (by other packages or the administrator)\&. Configuration Item Dir::Etc::TrustedParts\&. .RE .PP /etc/apt/trustdb\&.gpg .RS 4 Local trust database of archive keys\&. .RE .PP /usr/share/keyrings/debian\-archive\-keyring\&.gpg .RS 4 Keyring of Debian archive trusted keys\&. .RE .PP /usr/share/keyrings/debian\-archive\-removed\-keys\&.gpg .RS 4 Keyring of Debian archive removed trusted keys\&. .RE .SH "SEE ALSO" .PP \fBapt-get\fR(8), \fBapt-secure\fR(8) .SH "BUGS" .PP \m[blue]\fBAPT bug page\fR\m[]\&\s-2\u[1]\d\s+2\&. If you wish to report a bug in APT, please see /usr/share/doc/debian/bug\-reporting\&.txt or the \fBreportbug\fR(1) command\&. .SH "AUTHOR" .PP APT was written by the APT team \&. .SH "AUTHORS" .PP \fBJason Gunthorpe\fR .RS 4 .RE .PP \fBAPT team\fR .RS 4 .RE .SH "NOTES" .IP " 1." 4 APT bug page .RS 4 \%http://bugs.debian.org/src:apt .RE