# Installing via 'sudo yum install ansible' on REL 6.3 results in 'Requires: python-jinja2'

**URL:** <https://forum.ansible.com/t/installing-via-sudo-yum-install-ansible-on-rel-6-3-results-in-requires-python-jinja2/12428>\
**Category:** Ansible Project\
**Tags:** ansible-project\
**Created:** [February 27, 2013, 8:23pm UTC](https://forum.ansible.com/t/installing-via-sudo-yum-install-ansible-on-rel-6-3-results-in-requires-python-jinja2/12428 "2013-02-27T20:23:32Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Daniel\_Hokka\_Zakriss](https://avatars.discourse-cdn.com/v4/letter/d/f05b48/32.png) [@Daniel\_Hokka\_Zakriss](https://forum.ansible.com/u/Daniel_Hokka_Zakriss)\
**Post date:** [February 27, 2013, 8:23pm UTC](https://forum.ansible.com/t/installing-via-sudo-yum-install-ansible-on-rel-6-3-results-in-requires-python-jinja2/12428/1 "2013-02-27T20:23:32Z")

</div>

John Krewson wrote:

> Greetings,
> 
> I have looked through this group and found some questions similar to mine,  
> but the posts I found were from some months ago and I can't quite tell if  
> there is a problem with a reference in the Epel ansible package or if I'm  
> performing a step incorrectly. If I need to ask the Epel maintainers  
> instead, please let me know.
> 
> On a REL 6.3 server, I have access to the Epel 6 list of packages. Epel 6  
> contains an 'ansible' package.
> 
> When attempting to install, I get the following:
> 
> Error: Package: ansible-0.8-1.el6.noarch (epel-rhel6-x86\_64)  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Requires: python-jinja2
> 
> Epel 6 has python-jinja2-26, but the ansible package is referring to the  
> jinja2 package in Epel 5.
> 
> Has anyone run into this before? I've included some addition details of my  
> setup at the end of the message.

You have to enable the RHEL6 optional channel to get it. It's not in EPEL.

Daniel

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan](https://avatars.discourse-cdn.com/v4/letter/m/c4cdca/32.png) [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Post date:** [February 27, 2013, 8:33pm UTC](https://forum.ansible.com/t/installing-via-sudo-yum-install-ansible-on-rel-6-3-results-in-requires-python-jinja2/12428/2 "2013-02-27T20:33:53Z")

</div>

It is in EPEL.

[http://dl.fedoraproject.org/pub/epel/6/x86\_64/repoview/python-jinja.html](http://dl.fedoraproject.org/pub/epel/6/x86_64/repoview/python-jinja.html)

It looks like the "-26" version is just a noarch package pointing to the other.

---

<div class="post-metadata">

**Author:** ![Daniel\_Hokka\_Zakriss](https://avatars.discourse-cdn.com/v4/letter/d/f05b48/32.png) [@Daniel\_Hokka\_Zakriss](https://forum.ansible.com/u/Daniel_Hokka_Zakriss)\
**Post date:** [February 27, 2013, 8:44pm UTC](https://forum.ansible.com/t/installing-via-sudo-yum-install-ansible-on-rel-6-3-results-in-requires-python-jinja2/12428/3 "2013-02-27T20:44:24Z")

</div>

Michael DeHaan wrote:

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan](https://avatars.discourse-cdn.com/v4/letter/m/c4cdca/32.png) [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Post date:** [February 27, 2013, 8:55pm UTC](https://forum.ansible.com/t/installing-via-sudo-yum-install-ansible-on-rel-6-3-results-in-requires-python-jinja2/12428/4 "2013-02-27T20:55:43Z")

</div>

Ha, ok, so they completely renamed things or I've just been using pip.

This is totally fixable through a conditional in the specfile.

Cobbler does some of this and we can port it.

[https://github.com/cobbler/cobbler/blob/master/cobbler.spec](https://github.com/cobbler/cobbler/blob/master/cobbler.spec)

The question is, how was it \*already\* working in EPEL6 and not failing  
or was this a recent rename in EPEL (and if so, not cool, EPEL?)

Adding Tim on CC in case he knows.

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan](https://avatars.discourse-cdn.com/v4/letter/m/c4cdca/32.png) [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Post date:** [February 27, 2013, 9:00pm UTC](https://forum.ansible.com/t/installing-via-sudo-yum-install-ansible-on-rel-6-3-results-in-requires-python-jinja2/12428/5 "2013-02-27T21:00:11Z")

</div>

Ok, so it sounds like python-jinja2 does NOT need to be in there for  
CentOS EPEL because it's already in CentOS CentOS, so this is just  
what Daniel said about enabling the other RHEL repo.

Computers are hard! 🙂

---

<div class="post-metadata">

**Author:** ![John\_Krewson](https://avatars.discourse-cdn.com/v4/letter/j/4da419/32.png) [@John\_Krewson](https://forum.ansible.com/u/John_Krewson)\
**Post date:** [February 27, 2013, 10:00pm UTC](https://forum.ansible.com/t/installing-via-sudo-yum-install-ansible-on-rel-6-3-results-in-requires-python-jinja2/12428/6 "2013-02-27T22:00:42Z")

</div>

I will check that out. I thought it was a missed inclusion. Thanks!
