Linux

如何從 yum 安裝 puppet devel 版本?

  • July 20, 2012

/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 位。

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

引用自:https://serverfault.com/questions/409565