Yuri Kanivetsky
2017-Mar-12 15:42 UTC
[CentOS] How do I confirm importing repo key without user intervention?
Hi, Sorry for asking it again. I just thought I asked the question the wrong way. Too much unnecessary details. And therefore, got no replies. I'm configuring a server from, say, a script (automatically). I need it to be done without user saying, "Yes, it's okay to import the key." I was told to run the following command: yum makecache -y --disablerepo=* --enablerepo=passenger Can you confirm if this is okay? Any better ways? Thanks in advance. Regards, Yuri
Leon Fauster
2017-Mar-12 16:01 UTC
[CentOS] How do I confirm importing repo key without user intervention?
Am 12.03.2017 um 16:42 schrieb Yuri Kanivetsky <yuri.kanivetsky at gmail.com>:> > Sorry for asking it again. I just thought I asked the question the > wrong way. Too much unnecessary details. And therefore, got no > replies. > > I'm configuring a server from, say, a script (automatically). I need > it to be done without user saying, "Yes, it's okay to import the key." > > I was told to run the following command: > > yum makecache -y --disablerepo=* --enablerepo=passenger > > Can you confirm if this is okay? Any better ways? Thanks in advance.what about importing the key beforehand rpm --import keyfile -- LF
Yuri Kanivetsky
2017-Mar-12 17:30 UTC
[CentOS] How do I confirm importing repo key without user intervention?
> what about importing the key beforehand> rpm --import keyfileThat's what I do. But when I try to install a package from that (passenger) repository manually, yum wants my confirmation: # curl --fail -sSLo /etc/yum.repos.d/passenger.repo https://oss-binaries.phusionpassenger.com/yum/definitions/el-passenger.repo # grep gpgkey /etc/yum.repos.d/passenger.repo gpgkey=https://packagecloud.io/gpg.key gpgkey=https://packagecloud.io/gpg.key # rpm --import 'https://packagecloud.io/gpg.key' # yum install passenger Loaded plugins: fastestmirror passenger/7/x86_64/signature | 836 B 00:00:00 Retrieving key from https://packagecloud.io/gpg.key Importing GPG key 0xD59097AB: Userid : "packagecloud ops (production key) <ops at packagecloud.io>" Fingerprint: 418a 7f2f b0e1 e6e7 eabf 6fe8 c2e7 3424 d590 97ab From : https://packagecloud.io/gpg.key When I do it from a script, it fails. Regards, Yuri
Seemingly Similar Threads
- How do I confirm importing repo key without user intervention?
- How do I confirm importing repo key without user intervention?
- How to automatically confirm importing repo key?
- How do I confirm importing repo key without user intervention?
- [PATCH ovirt-node] Removed subpackages, stateful, stateless, logos, and selinux for inclusuion in Fedora