On Tue, Feb 19, 2013 at 2:38 AM, DreamBig <rajeev.n.i...@gmail.com> wrote:
> Hi ,
>
> Following is the issue:
>
> puppet.repo:
>
> [puppetlabs]
> name=Puppet Labs Packages
> baseurl=http://yum.puppetlabs.com/el/$releasever/products/$basearch/
> enabled=1
> gpgcheck=1
> gpgkey=http://yum.puppetlabs.com/RPM-GPG-KEY-puppetlabs
>
> uname -a
>
> Linux rniyer-linux 2.6.32-220.el6.x86_64 #1 SMP Wed Nov 9 08:03:13 EST
> 2011 x86_64 x86_64 x86_64 GNU/Linux
>
> $ yum install puppet-server
> Loaded plugins: product-id, refresh-packagekit, rhnplugin, security,
> subscription-manager
> Updating certificate-based repositories.
> puppetlabs
> | 1.9 kB     00:00
> Not using downloaded repomd.xml because it is older than what we have:
>   Current   : Thu Feb 14 12:17:53 2013
>   Downloaded: Thu Feb 14 12:17:10 2013
> Setting up Install Process
> Resolving Dependencies
> --> Running transaction check
> ---> Package puppet-server.noarch 0:3.1.0-1.el5 will be installed
> --> Processing Dependency: puppet = 3.1.0-1.el5 for package: puppet-
> server-3.1.0-1.el5.noarch
> --> Running transaction check
> ---> Package puppet.noarch 0:3.1.0-1.el5 will be installed
> --> Processing Dependency: ruby-augeas for package:
> puppet-3.1.0-1.el5.noarch
> --> Processing Dependency: ruby-shadow for package:
> puppet-3.1.0-1.el5.noarch
> --> Running transaction check
> ---> Package ruby-augeas.x86_64 0:0.4.1-1.el6 will be installed
> ---> Package ruby-shadow.x86_64 0:1.4.1-13.el6 will be installed
> --> Finished Dependency Resolution
>
> Dependencies Resolved
>
> =============================================================================================================================================================
>  Package
> Arch
> Version
> Repository                            Size
> =============================================================================================================================================================
> Installing:
>  puppet-server
> noarch
> 3.1.0-1.el5
> puppetlabs                            23 k
> Installing for dependencies:
>  puppet
> noarch
> 3.1.0-1.el5
> puppetlabs                           957 k
>  ruby-augeas
> x86_64
> 0.4.1-1.el6
> aegisco                               21 k
>  ruby-shadow
> x86_64
> 1.4.1-13.el6
> aegisco                               11 k
>
> Transaction Summary
> =============================================================================================================================================================
> Install       4 Package(s)
>
> Total size: 1.0 M
> Total download size: 980 k
> Installed size: 2.8 M
> Is this ok [y/N]:
>
> If you notice, it is picking the version 3.1.0-1.el5 when it should be
> picking   3.1.0-1.el6
>
> How can I install using rpm instead of yum?

Your issue is pointing to an oddity in your yum config. The
puppet.repo file is using $releasever to determine the correct repo
path. $releasever is determined by yum by checking the version of the
package that provides `redhat-release`, unless you've overridden it in
yum.conf. In your case, yum appears to think you're on an el 5 box.
What distro/version are you running? What are the contents of
/etc/redhat-release ?

>
> --
> You received this message because you are subscribed to the Google Groups 
> "Puppet Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to puppet-users+unsubscr...@googlegroups.com.
> To post to this group, send email to puppet-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/puppet-users?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to