apk/apt-cache/apt-file/apt-get/apt-key:add chinese translations

This commit is contained in:
hugue
2018-12-23 20:29:21 +08:00
committed by Agniva De Sarker
parent 83ab89b278
commit a5db4c3ad5
7 changed files with 122 additions and 5 deletions

24
pages.cn/linux/apt-key.md Normal file
View File

@@ -0,0 +1,24 @@
# apt-key
> Debian和Ubuntu上的APT软件包管理器的密钥管理工具
- 列出可信密钥:
`apt-key list`
- 向可信密钥库中添加一个密钥:
`apt-key add {{public_key_file.asc}}`
- 从可信密钥库中移除一个密钥:
`apt-key del {{key_id}}`
- 向可信密钥库中添加一个远程密钥:
`wget -qO - {{https://host.tld/filename.key}} | apt-key add -`
- 指定密钥ID,从密钥服务器中添加一个密钥:
- Add a key from keyserver with only key id:
`apt-key adv --keyserver {{pgp.mit.edu}} --recv {{KEYID}}`