puppetpuppetlabs-apache

puppet installation error -enable repo


I am Enabling the official Puppet Labs collection repository with this command:

when i try to do :

sudo rpm -ivh http://yum.puppetlabs.com/puppetlabs-release-el-7.noarch.rpm

error:

Retrieving http://yum.puppetlabs.com/puppetlabs-release-el-7.noarch.rpm
warning: /var/tmp/rpm-tmp.4CilbA: Header V4 RSA/SHA1 Signature, key ID 4bd6ec30: NOKEY
Preparing...                          ################################# [100%]
        file /etc/yum.repos.d/puppetlabs.repo from install of puppetlabs-release-7-12.noarch conflicts with file from package puppetlabs-release-6-12.noarch

does anyone know how to resolve this issue?


Solution

  • executing the below comand solved this error:

    [root@ip-10-****/]# rpm -qa | grep puppetlabs-release
    puppetlabs-release-6-12.noarch
    [root@ip-10-****/]# rpm -e puppetlabs-release-6-12.noarch