CentOS 7 ํ๊ฒฝ์์ GitLab์ ์ค์นํ๋ ์ค ๋ค์๊ณผ ๊ฐ์ ์๋ฌ๊ฐ ๋ฐ์ํ๋ค. ๋ง์ง๋ง์ Complete ๋ฉ์์ง๋ง ๋ณด๊ณ ์ค์น๊ฐ ๋๋? ํ๋๋ฐ ์ค์น์ ์คํจํด์ ์ค์น ํ๋ก์ธ์ค๊ฐ ๊ทธ๋ฅ ๋๋ฌ๋ค๋ ๋ป์ธ๋ฏ. ์๋ฌ๋ฅผ ํด๊ฒฐํด์ผ ์ค์นํ ์ ์๊ธฐ์ ... ๋ ์ฝ์งํ๋ค.
$ sudo yum install gitlab-ce-15.10.2-ce.0.el7.x86_64.rpm
์ค๋ฅ: gitlab-ce-15.10.2-ce.0.el7.x86_64: Header V4 RSA/SHA1 Signature, key ID f27eab47: BAD
gitlab-ce-15.10.2-ce.0.el7.x86_64 was supposed to be installed but is not!
Verifying : gitlab-ce-15.10.2-ce.0.el7.x86_64 1/1
Verifying : gitlab-ce-15.10.2-ce.0.el7.x86_64 2/1
Failed:
gitlab-ce.x86_64 0:15.10.2-ce.0.el7
Complete!
๋ฐ์ ์์ธ
RedHat OS์์ rpm ํจํค์ง ์ค์น์ ๋ฐ์ํ๋ ์ค๋ฅ์ธ๋ฐ, CentOS ๋ฒ์ ๋ง๋ค GPG Signature ๋ฒ์ ์ด ๋ฌ๋ผ์ ๋ฐ์ํ๋ค.
โป CentOS๋ ์ ๋ฃ Linux ๋ฐฐํฌํ์ธ RedHat(๋ ๋ํ)์์ ํ์๋ OS๋ก ๋ ๋ํ์ ๊ธฐ์ ์ ๊ฑฐ์ ๊ทธ๋๋ก ์ฌ์ฉํ ์ ์๋? ๋ ๋ํ์ ๋ฌด๋ฃ ๋ฒ์ OS
CentOS ํํ์ด์ง์์ ์ ๊ณตํ๋ ์ ๋ณด์ ๋ฐ๋ฅด๋ฉด, CentOS๋ GPG Keys๋ฅผ ์ฌ์ฉํ๊ณ yum ๋ฑ ํจํค์ง ์ค์น ๋๊ตฌ๋ฅผ ์ฌ์ฉํ์ ๋ ํจํค์ง์์ ์๋ช ๋ GPG Keys ๋ฒ์ ๊ณผ CentOS์์ ์ง์ํ๋ GPG Keys์ ๋ฒ์ ์ด ๋ค๋ฅด๋ฉด ํจํค์ง ์ค์น๊ฐ ๊ฑฐ๋ถ๋๋ค๊ณ ํ๋ค. ๋ฒ๊ฑฐ๋กญ๊ฒ GPG Keys๋ฅผ ์ฌ์ฉํ๋ ์ด์ ๋ ์๋ฒ์ Installํ ํจํค์ง๊ฐ CentOS๊ฐ ๋ณด์ฆํ ์ ์๋ค๋ ๋ป์ด๋ผ๊ณ .
โป ์์๋ชป์ด๋ผ ํด์์ด ์ ํํ์ง ์์ ์ ์์
์ ๋ด์ฉ์ ํ ๋๋ก ๋ ์ฐพ์๋ณด๊ณ ๊ณต๋ถํ ๋ด์ฉ์ ์์ฝํด์ ์จ๋ณด๋ฉด ์ด๋ ๋ค.
- RedHat ๊ณ์ด Linux๋ rpm ๊ธฐ๋ฐ์ ํจํค์ง ๊ด๋ฆฌ ์ฒด๊ณ๋ฅผ ๊ฐ์ ธ yum์ผ๋ก ํจํค์ง ์ค์น์ rpm ํจํค์ง DB๋ฅผ ํ ๋๋ก ๋์
- ์ด๋ฌํ rpm ๊ธฐ๋ฐ ํจํค์ง๋ค์ RPM GPG Key๋ผ๋ ๊ณต๊ฐํค ์ ์ ์๋ช ๊ณผ ๊ฒ์ฆ์ ํตํด ํด๋น ํจํค์ง๋ฅผ ๋ณด์ฆ
- ๋๋ฌธ์ Public GPG Keys๊ฐ ๋ฏธ๋ฑ๋ก ํน์ ๋ง๋ฃ ์ํ์ธ ๊ฒฝ์ฐ yum์ผ๋ก rpm ํจํค์ง๋ฅผ ์ค์นํ ์ ์์.
๊ทธ๋ฌ๋๊น, RPM-GPG-KEY(๊ณต๊ฐํค ๊ธฐ๋ฐ์ ๋์งํธ ์๋ช )๋ผ๋ ๊ฒ์ ๋ฑ๋กํด์ผ rpm ํจํค์ง๋ฅผ ์ค์นํ ์ ์๋ค๋ ๋ป์ด ๋จ!
- CentOS 5 : V3
- CentOS 6 : V4
- CentOS 7 :
ํด๊ฒฐ ๋ฐฉ๋ฒ
1) RPM GPG KEY ์ค์น ์ ๋ฌด ํ์ธ
RPM GPG KEY๊ฐ ์ค์น๋์ด ์๋์ง ํ์ธํ๋ค. gpg-pubkey๋ก ์์ํ๋ ๋ฉ์์ง๊ฐ ์๋ค๋ฉด ์ค์น๋์ง ์์ ๊ฒ์ด๋ค. ๋ ๋ฒ์งธ ๋ช ๋ น์ด๋ ํ์ฌ OS์ ๋ฒ์ ์ ํ์ธํ๋ ๊ฑด๋ฐ, OS ๋ฒ์ ์ ํ์ธํด์ผ 2๋ฒ์์ RPM GPG KEY๋ฅผ ์ค์นํ ์ ์๋ค.
$ rpm -qa | grep gpg
libgpg-error-1.12-3.el7.x86_64
$ rpm -qa *-release
centos-release-7-9.2009.1.el7.centos.x86_64
2) RPM GPG KEY ์ค์น
๊ณผ์ 1์์ ํ์ธํ OS ๋ฒ์ ์ผ๋ก RPM GPG KEY๋ฅผ ์ค์นํ๋ค. (rpm --import RPM-GPG-KEY-CentOS-{CentOS๋ฒ์ }) ์ค์น๊ฐ ๋๋ฉด ๋ค์ RPM GPG KEY ๋ฆฌ์คํธ๋ฅผ ํ์ธํ๊ณ , ์ถ๊ฐ๋ gpg-pubkey~๋ฅผ ์ ์ฒด ๋ณต์ฌํ์ฌ rpm -qi ๋ช ๋ น ๋ค์ ๋ถ์ฌ๋ฃ๋๋ค. ์ค์น๊ฐ ์ ๋์๋ค๋ฉด ํด๋น ์ ๋ณด๊ฐ ์๋ ํ์๋ ๊ฒ์ด๋ค.
$ rpm --import RPM-GPG-KEY-CentOS-7 # RPM GPG KEY ์ค์น
$ rpm -qa | grep gpg # RPM GPG KEY ํ์ธ (gpg-pubkey-f4a80eb5-53a7ff4b ์ถ๊ฐ๋จ)
libgpg-error-1.12-3.el7.x86_64
gpg-pubkey-f4a80eb5-53a7ff4b
$ rpm -qi gpg-pubkey-f4a80eb5-53a7ff4b # RPM GPG KEY ์ค์น ํ์ธ
Name : gpg-pubkey
Version : f4a80eb5
Release : 53a7ff4b
Architecture: (none)
Install Date: 2023๋
04์ 07์ผ (๊ธ) ์ค์ 02์ 43๋ถ 21์ด
Group : Public Keys
Size : 0
License : pubkey
Signature : (none)
Source RPM : (none)
Build Date : 2014๋
06์ 23์ผ (์) ์คํ 07์ 19๋ถ 55์ด
Build Host : localhost
Relocations : (not relocatable)
Packager : CentOS-7 Key (CentOS 7 Official Signing Key) <security@centos.org>
Summary : gpg(CentOS-7 Key (CentOS 7 Official Signing Key) <security@centos.org>)
Description :
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: rpm-4.11.3 (NSS-3)
๋์ ๊ฒฝ์ฐ RPM GPG KEY๊ฐ ์ค์น๋์ด ์์๊ณ , ๋ฒ์ ๋ Requires์ ๋ช ์๋ ๊ฒ๊ณผ ์ผ์นํ์ผ๋ ์ด์ํ๊ฒ rpm ํจํค์ง ์ค์น๊ฐ ๋์ง ์์๋ค. ์๋ ๋ช ๋ น์ด ์ ๋ ฅ ๊ธฐ๋ก์ ๋ณด๋ฉด gpg-pubkey๊ฐ ์ด๋ฏธ ๋ฑ๋ก๋์ด ์๊ณ , ์๋ก ์ค์นํ๋ ค๊ณ ํ๋ failed๊ฐ ๋ธ.
$ rpm -qa | grep gpg
libgpg-error-1.12-3.el7.x86_64
gpg-pubkey-f4a80eb5-53a7ff4b
pygpgme-0.3-9.el7.x86_64
gpgme-1.3.2-5.el7.x86_64
$ rpm -qa *-release
centos-release-7-9.2009.1.el7.centos.x86_64
$ rpm --import RPM-GPG-KEY-CentOS-7
์ค๋ฅ: RPM-GPG-KEY-CentOS-7: import read failed(2).
$ rpm -qi gpg-pubkey-f4a80eb5-53a7ff4b
Name : gpg-pubkey
Version : f4a80eb5
Release : 53a7ff4b
Architecture: (none)
Install Date: 2023๋
04์ 07์ผ (๊ธ) ์ค์ 02์ 43๋ถ 21์ด
Group : Public Keys
Size : 0
License : pubkey
Signature : (none)
Source RPM : (none)
Build Date : 2014๋
06์ 23์ผ (์) ์คํ 07์ 19๋ถ 55์ด
Build Host : localhost
Relocations : (not relocatable)
Packager : CentOS-7 Key (CentOS 7 Official Signing Key) <security@centos.org>
Summary : gpg(CentOS-7 Key (CentOS 7 Official Signing Key) <security@centos.org>)
Description :
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: rpm-4.11.3 (NSS-3)
๊ทธ๋์ ์ด๊ฒ์ ๊ฒ ์๋ํด๋ณด๋ค๊ฐ gpg config ํ์ผ์ ์์ฑํด๋ณด๋ ํด๊ฒฐ๋์๋ค. ์ด ํ์ผ์ด ์ด๋ค ์ญํ ์ธ์ง๋, ์ ํด๊ฒฐ๋์ง๋ ๋ชจ๋ฅด๊ฒ ์ผ๋ ์ ๋ฐฉ๋ฒ๊น์ง ๋ชจ๋ ์๋ํด๋ณด์๋๋ฐ ์๋๋ ๊ฒฝ์ฐ ์๋ ๋ช ๋ น ์ ๋ ฅํด๋ณด๋ฉด ํด๊ฒฐ๋ ์๋.
$ gpg --quiet --with-fingerprint /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
gpg: new configuration file `/home/idox/.gnupg/gpg.conf' created
gpg: WARNING: options in `/home/idox/.gnupg/gpg.conf' are not yet active during this run
pub 4096R/F4A80EB5 2014-06-23 CentOS-7 Key (CentOS 7 Official Signing Key) <security@centos.org>
Key fingerprint = 6341 AB27 53D7 8A78 A7C2 7BB1 24C6 A8A7 F4A8 0EB5
'๐ OS > Linux-๋ฆฌ๋ ์ค' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[Linux] ์ฟ ๋ฒ๋คํฐ์ค(Kubernetes, k8s)๋? (0) | 2023.08.29 |
---|---|
[Linux] ์ปจํ ์ด๋์ ์ดํด (0) | 2023.08.29 |
[E] CentOS 7 ํ๊ฒฝ GitLab ์ค์น ์ค Requires: policycoreutils-python-utils ์๋ฌ ๋ฐ์ (ํจํค์ง ์์กด์ฑ ๋ฌธ์ ) (0) | 2023.04.10 |
[E] Found 271 pre-existing rpmdb problem(s), 'yum check' output follows: (0) | 2023.04.10 |
[Linux] ๋ฆฌ๋ ์ค ์ฌ์ฉ์(User) ์์ฑ ๋ฐฉ๋ฒ (0) | 2023.04.06 |