apt-key
Quick Reference
Command Name:
apt-key
Category:
file management
Platform:
Linux/Unix
Basic Usage:
Common Use Cases
- 1
Repository authentication
Add authentication keys for third-party software repositories
- 2
Key management
Manage the keys used to verify the authenticity of packages
- 3
Security maintenance
Remove expired or compromised keys from the trusted keyring
- 4
Key verification
List and inspect keys to verify their authenticity and origin
Syntax
apt-key [OPTION]... [FILE]...
Options
| Option | Description |
|---|---|
-l |
Use a long listing format |
-a |
Show hidden entries starting with . |
-h |
Human-readable sizes |
-R |
List subdirectories recursively |
Examples
How to Use These Examples
The examples below show common ways to use the apt-key command. Try them in your terminal to see the results. You can copy any example by clicking on the code block.