2016-01-08 04:56:45 +00:00
|
|
|
# apt-key
|
|
|
|
|
2016-01-13 11:04:46 +00:00
|
|
|
> Key management utility for the APT Package Manager on Debian and Ubuntu.
|
2016-01-08 04:56:45 +00:00
|
|
|
|
2016-01-13 11:04:46 +00:00
|
|
|
- List trusted key:
|
2016-01-08 04:56:45 +00:00
|
|
|
|
|
|
|
`apt-key list`
|
|
|
|
|
2016-01-13 11:04:46 +00:00
|
|
|
- Add a key to the trusted keystor:
|
2016-01-08 04:56:45 +00:00
|
|
|
|
|
|
|
`apt-key add {{public_key_file.asc}}`
|
|
|
|
|
2016-01-13 11:04:46 +00:00
|
|
|
- Delete a key from the trusted keystor:
|
2016-01-08 04:56:45 +00:00
|
|
|
|
|
|
|
`apt-key del {{key_id}}`
|
|
|
|
|
2016-01-13 11:04:46 +00:00
|
|
|
- Add a remote key to the trusted keystor:
|
2016-01-08 04:56:45 +00:00
|
|
|
|
|
|
|
`wget -qO - {{https://host.tld/filename.key}} | apt-key add -`
|