如何从 yum 安装 puppet devel 版本?

如何从 yum 安装 puppet devel 版本?

/etc/yum.repos.d/puppet.repo已经把

[puppetlabs]
name=Puppet Labs Packages
baseurl=http://yum.puppetlabs.com/el/$releasever/devel/$basearch/
enabled=1
gpgcheck=1
gpgkey=http://yum.puppetlabs.com/RPM-GPG-KEY-puppetlabs

当我这样做的时候

yum info puppet-server

尽管它在存储库中,但它没有被提及puppet-server-3.0.0-0.1rc3为一个选项http://yum.puppetlabs.com/el/6/devel/x86_64/

我究竟做错了什么?

使用 CentOS 6.3 64 位。

答案1

rpm -Uvh http://yum.puppetlabs.com/el/6/devel/x86_64/puppetlabs-release-devel-6-1.noarch.rpm

不知道为什么这会起作用,但确实如此。

它包含的都是

[root@puppet ~]# rpm -ql puppetlabs-release-devel-6-1
/etc/pki/rpm-gpg/RPM-GPG-KEY-puppetlabs-devel
/etc/yum.repos.d/puppetlabs-devel.repo

[root@puppet ~]# cat /etc/yum.repos.d/puppetlabs-devel.repo
[puppetlabs-devel]
name=Puppet Labs Devel 6 - $basearch
baseurl=http://yum.puppetlabs.com/el/6/devel/$basearch
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-puppetlabs-devel
enabled=1
gpgcheck=1

相关内容