# Ansible installation-Centos

**URL:** <https://forum.ansible.com/t/ansible-installation-centos/33970>\
**Category:** Ansible Project\
**Created:** [October 6, 2020, 2:41pm UTC](https://forum.ansible.com/t/ansible-installation-centos/33970 "2020-10-06T14:41:56Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tanvir\_Hossain](https://avatars.discourse-cdn.com/v4/letter/t/dbc845/32.png) [@Tanvir\_Hossain](https://forum.ansible.com/u/Tanvir_Hossain)\
**Post date:** [October 6, 2020, 2:41pm UTC](https://forum.ansible.com/t/ansible-installation-centos/33970/1 "2020-10-06T14:41:56Z")

</div>

My production server is running on Centos 7.7. I want to install ansible. But due to no internet connection available, I am facing issues while installing the rpms , there are so many dependencies, that literally approaching is quite impossible to proceed. Can anyone please help me how I can get all the rpms for the ansible installation?

---

<div class="post-metadata">

**Author:** ![Dick\_Visser](https://avatars.discourse-cdn.com/v4/letter/d/d9b06d/32.png) [@Dick\_Visser](https://forum.ansible.com/u/Dick_Visser)\
**Post date:** [October 6, 2020, 3:14pm UTC](https://forum.ansible.com/t/ansible-installation-centos/33970/2 "2020-10-06T15:14:17Z")

</div>

It is not clear if you have no way of installing dependencies at all.  
Or if you somehow can fetch them through some other way, and manually  
install them.

---

<div class="post-metadata">

**Author:** ![Stu](https://avatars.discourse-cdn.com/v4/letter/s/3ec8ea/32.png) [@Stu](https://forum.ansible.com/u/Stu)\
**Post date:** [October 6, 2020, 3:27pm UTC](https://forum.ansible.com/t/ansible-installation-centos/33970/3 "2020-10-06T15:27:24Z")

</div>

**On a machine with internet access**

PKG=ansible # NAME OF THE PACKAGE TO INSTALL ON OFFLINE MACHINE

yum install --downloadonly --installroot=/tmp/$PKG-installroot --releasever=7 --downloaddir=/tmp/$PKG $PKG

createrepo --database /tmp/$PKG

rm -rf /tmp/$PKG-installroot

rsync -arv /tmp/$PKG/ [IP of the machine]:/tmp/$PKG

**On the offline Machine**

---

<div class="post-metadata">

**Author:** ![Omkar\_Sawant](https://avatars.discourse-cdn.com/v4/letter/o/ba9def/32.png) [@Omkar\_Sawant](https://forum.ansible.com/u/Omkar_Sawant)\
**Post date:** [October 7, 2020, 10:31am UTC](https://forum.ansible.com/t/ansible-installation-centos/33970/4 "2020-10-07T10:31:44Z")

</div>

Use proxy for that or create one repository server for your server for installation.
