원하는 버전의 패키지를 rpm으로 설치 시 의존성 패키지 문제로 불편함.
의존성 문제를 피하기 위해 zypper install xxx.rpm 명령으로 의존성과 원하는 버전 패키지 설치 가능
설치 중 아래와 같이 gpg key가 없다고 함
원인은 SLE OS자체에서 신뢰하지 않는 rpm은 설치를 막는다.
신뢰하도록 rpm 제공하는 곳에서 key값을 받아야 한다.
**DEV5HANA:~ # zypper install atop-2.4.0-150500.3.1.x86_64.rpm**
Loading repository data...
Reading installed packages...
Resolving package dependencies...
The following NEW package is going to be installed:
atop
The following package has no support information from its vendor:
atop
1 new package to install.
Overall download size: 163.1 KiB. Already cached: 0 B. After the operation, additional 728.3 KiB will be
used.
Continue? [y/n/v/...? shows all options] (y): y
Retrieving: atop-2.4.0-150500.3.1.x86_64 (Plain RPM files cache) (1/1), 163.1 KiB
atop-2.4.0-150500.3.1.x86_64.rpm:
Header V3 DSA/SHA1 Signature, **key ID a5c23697ee454f98: NOKEY**
V3 DSA/SHA1 Signature, **key ID a5c23697ee454f98: NOKEY**
warning: /var/tmp/zypp.rFFxnW/zypper/_tmpRPMcache_/%CLI%/atop-2.4.0-150500.3.1.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID ee454f98: NOKEY
Looking for gpg key ID EE454F98 in cache /var/cache/zypp/pubkeys.
Repository Plain RPM files cache does not define additional 'gpgkey=' URLs.
atop-2.4.0-150500.3.1.x86_64 (Plain RPM files cache): Signature verification failed [4-Signatures public key is not available]
Abort, retry, ignore? [a/r/i] (a): a
Problem occurred during or after installation or removal of packages:
Installation has been aborted as directed.
Please see the above error message for a hint.
이미 인증된 서버 A서버에서 키 값 복사 → 인증 안된 B서버에서 키 값 import
인증된 서버 A
**exporter-test:/usr/lib/rpm/gnupg/keys # ll**
total 24
-rw-r--r-- 1 root root 972 Feb 10 2023 gpg-pubkey-39db7c82-5f68629b.asc
-rw-r--r-- 1 root root 1670 Feb 10 2023 gpg-pubkey-3fa1d6ce-63c9481c.asc
-rw-r--r-- 1 root root 1065 Feb 10 2023 gpg-pubkey-50a3dd1c-50f35137.asc
-rw-r--r-- 1 root root 1684 Feb 10 2023 gpg-pubkey-d588dc46-63c939db.asc
-rw-r--r-- 1 root root 976 Feb 10 2023 suse_ptf_key.asc
-rw-r--r-- 1 root root 1666 Feb 10 2023 suse_ptf_key_2023.asc
#원하는 키 **a5c23697ee454f98**가 없다
#검색
**exporter-test:/usr/lib/rpm/gnupg/keys # rpm -qi gpg-pubkey-ee454f98**
Name : gpg-pubkey
Version : ee454f98
Release : 6383dee4
Architecture: (none)
Install Date: Wed Oct 16 14:39:19 2024
Group : Public Keys
Size : 0
License : pubkey
Signature : (none)
Source RPM : (none)
Build Date : Mon Nov 28 07:04:20 2022
Build Host : localhost
Relocations : (not relocatable)
Packager : server:monitoring OBS Project <server:monitoring@build.opensuse.org>
Summary : gpg(server:monitoring OBS Project <server:monitoring@build.opensuse.org>)
Description :
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: rpm-4.14.3 (NSS-3)
mQGiBEeWW1QRBACh+BO7H7CvLLhpF6JtG3XbEiCCBaOWJuno3hj4xJnZY6moeqUu
GEI4yxi/PW7EwrrtzUVcJrmsnnqOE26uPHV6zK0Mxy2yHTdJtymswtxpCzvjHthO
VBr2ZhKIJ4IbZpdQg5QRJyWL+wPnUFSlj3we1p+ycS59wOfHfE8RT9X5PwCgme2P
DddcvLjMVwbfpRL1cElC9MMD/2aLUA0MjJtyUdh6ruBsW749FPOW7jRvOnpWouXn
hxEMRcGKXHyHSNKQaEppC4jmbqEy4XUir8OjVf78783U1jPZAc9lXBw6oc5WDRV+
soH6uv/GjhkcYEhSnBrUZu8wqF3D6XCmSd3a429Mvru3snfEYOUl4vrL5E71BwSq
wKhnA/4igS5TJ9W6AXyduOJkzxu70BdGNjHgf93I3iubeVBb0sCunCpsAuwDv1b1
hYKC5N6amCUh0w7P6Bzy05avnfSVoOqyVkWkzYIMKVN3GL1tnWtwKGdCgp0QAEBt
+dcX55Ri44msn6sjk72NCjMGutFXTGWMgF+Ndcvtf9ETRX4EYLREc2VydmVyOm1v
bml0b3JpbmcgT0JTIFByb2plY3QgPHNlcnZlcjptb25pdG9yaW5nQGJ1aWxkLm9w
ZW5zdXNlLm9yZz6IZgQTEQIAJgUCY4Pe5AIbAwUJIAwzkAYLCQgHAwIEFQIIAwQW
AgMBAh4BAheAAAoJEKXCNpfuRU+YIvQAoIGywpXqQixV6jo9TSaYeIKcMOAVAJwM
9Wvae0s8hp2dqJTjTxN4OPQWSg==
=dK0U
-----END PGP PUBLIC KEY BLOCK-----
Distribution: (none)
인증 안된 B서버
#A서버 키값 복사후 xxx.asc로 저장
**DEV5HANA:~ # cat atopkey.asc**
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: rpm-4.14.3 (NSS-3)
mQGiBEeWW1QRBACh+BO7H7CvLLhpF6JtG3XbEiCCBaOWJuno3hj4xJnZY6moeqUu
GEI4yxi/PW7EwrrtzUVcJrmsnnqOE26uPHV6zK0Mxy2yHTdJtymswtxpCzvjHthO
VBr2ZhKIJ4IbZpdQg5QRJyWL+wPnUFSlj3we1p+ycS59wOfHfE8RT9X5PwCgme2P
DddcvLjMVwbfpRL1cElC9MMD/2aLUA0MjJtyUdh6ruBsW749FPOW7jRvOnpWouXn
hxEMRcGKXHyHSNKQaEppC4jmbqEy4XUir8OjVf78783U1jPZAc9lXBw6oc5WDRV+
soH6uv/GjhkcYEhSnBrUZu8wqF3D6XCmSd3a429Mvru3snfEYOUl4vrL5E71BwSq
wKhnA/4igS5TJ9W6AXyduOJkzxu70BdGNjHgf93I3iubeVBb0sCunCpsAuwDv1b1
hYKC5N6amCUh0w7P6Bzy05avnfSVoOqyVkWkzYIMKVN3GL1tnWtwKGdCgp0QAEBt
+dcX55Ri44msn6sjk72NCjMGutFXTGWMgF+Ndcvtf9ETRX4EYLREc2VydmVyOm1v
bml0b3JpbmcgT0JTIFByb2plY3QgPHNlcnZlcjptb25pdG9yaW5nQGJ1aWxkLm9w
ZW5zdXNlLm9yZz6IZgQTEQIAJgUCY4Pe5AIbAwUJIAwzkAYLCQgHAwIEFQIIAwQW
AgMBAh4BAheAAAoJEKXCNpfuRU+YIvQAoIGywpXqQixV6jo9TSaYeIKcMOAVAJwM
9Wvae0s8hp2dqJTjTxN4OPQWSg==
=dK0U
-----END PGP PUBLIC KEY BLOCK-----
#key import
**sudo rpm --import /root/atopkey.asc**
#import 이후 다시 설치 시도
**zypper install atop-2.4.0-150500.3.1.x86_64.rpm**