How can I install a specific version of Ansible, using Yum or another method?

When I try to install version 2.0 it says No package 2.0 available.

I checked the epel repo. There are only two rpms, but no rpm containing version 2.0. Why are they removed? Is there any way to install a specific version of ansible, like 2.0?

  • 2
    Use the source, Luke! Commented Nov 8, 2016 at 11:29
  • yum list|grep -i ansible did output ansible.noarch in epel repo Commented Nov 8, 2016 at 11:29
  • yes "ansible.noarch epel"
    – salauddin
    Commented Nov 8, 2016 at 11:37
  • 1
    I recall a co-worker recently handled an Ansible upgrade—you should know that it's only recently that Ansible became available via RPM. Prior to that it was only available as a tarball. I believe that was version 2.0 that we were upgrading from. In other words, I don't think there ever was an RPM for Ansible 2.0. (I haven't researched the matter myself, though.)
    – Wildcard
    Commented Nov 8, 2016 at 12:11

1 Answer 1


I would recommend pip:

sudo pip install 'ansible==' 

More information on ansible[1] and pip[2] documentation.

And if you want to have more than one installed version, just use create virtualenv:

virtualenv .env
source .env/bin/activate
pip install 'ansible=='

and only this terminal will use this specific version of Ansible. Then repeat the process for each combination you want.

  • 3
    ansible= should be ansible==
    – devunder
    Commented Jun 13, 2017 at 9:03
  • This doesn't work. After running those 3 steps I ran ansible --version in the exact same terminal and environment and it was still running my old version.
    – Snowcrash
    Commented Oct 16, 2018 at 15:43
  • @Snowcrash which version are you trying to install and which version are you getting instead? Commented Oct 26, 2018 at 9:53

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .