Ubuntu apt-key
apt-key 키 사용법
Usage: apt-key [command] [arguments]
Manage apt's list of trusted keys
apt-key add <file> - add the key contained in <file> ('-' for stdin)
apt-key del <keyid> - remove the key <keyid>
apt-key export <keyid> - output the key <keyid>
apt-key exportall - output all trusted keys
apt-key update - update keys using the keyring package
apt-key net-update - update keys using the network
apt-key list - list keys
Manage apt's list of trusted keys
apt-key add <file> - add the key contained in <file> ('-' for stdin)
apt-key del <keyid> - remove the key <keyid>
apt-key export <keyid> - output the key <keyid>
apt-key exportall - output all trusted keys
apt-key update - update keys using the keyring package
apt-key net-update - update keys using the network
apt-key list - list keys
cat sample_key
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v1.4.6 (GNU/Linux)
bal~bal~bal~bal~bal~bal~bal~bal~bal~
bal~bal~bal~bal~bal~bal~bal~bal~bal~
bal~bal~bal~bal~bal~bal~bal~bal~bal~
-----END PGP PUBLIC KEY BLOCK-----
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v1.4.6 (GNU/Linux)
bal~bal~bal~bal~bal~bal~bal~bal~bal~
bal~bal~bal~bal~bal~bal~bal~bal~bal~
bal~bal~bal~bal~bal~bal~bal~bal~bal~
-----END PGP PUBLIC KEY BLOCK-----
키 추가
sudo apt-key add sample_key
sudo apt-key list
/etc/apt/trusted.gpg
--------------------
pub 1024D/437D05B5 2004-09-12
uid Ubuntu Archive Automatic Signing Key <ftpmaster@ubuntu.com>
sub 2048g/79164387 2004-09-12
pub 1024D/FBB75451 2004-12-30
uid Ubuntu CD Image Automatic Signing Key <cdimage@ubuntu.com>
pub 1024D/023DDE46 2007-10-21
uid Sample (sample key for signing repositories) <info@localhost>
sub 2048g/B5D4F05E 2007-10-21
/etc/apt/trusted.gpg
--------------------
pub 1024D/437D05B5 2004-09-12
uid Ubuntu Archive Automatic Signing Key <ftpmaster@ubuntu.com>
sub 2048g/79164387 2004-09-12
pub 1024D/FBB75451 2004-12-30
uid Ubuntu CD Image Automatic Signing Key <cdimage@ubuntu.com>
pub 1024D/023DDE46 2007-10-21
uid Sample (sample key for signing repositories) <info@localhost>
sub 2048g/B5D4F05E 2007-10-21
키 지우기
sudo apt-key del 023DDE46
OK
OK
sudo apt-key list
/etc/apt/trusted.gpg
--------------------
pub 1024D/437D05B5 2004-09-12
uid Ubuntu Archive Automatic Signing Key <ftpmaster@ubuntu.com>
sub 2048g/79164387 2004-09-12
pub 1024D/FBB75451 2004-12-30
uid Ubuntu CD Image Automatic Signing Key <cdimage@ubuntu.com>
/etc/apt/trusted.gpg
--------------------
pub 1024D/437D05B5 2004-09-12
uid Ubuntu Archive Automatic Signing Key <ftpmaster@ubuntu.com>
sub 2048g/79164387 2004-09-12
pub 1024D/FBB75451 2004-12-30
uid Ubuntu CD Image Automatic Signing Key <cdimage@ubuntu.com>
'Ubuntu' 카테고리의 다른 글
| 우분투 apt-key (0) | 2008/10/30 |
|---|---|
| Ubuntu IEEE1394(FireWire) Networking (0) | 2008/10/22 |