I need to install Ansible on my node and the node doesn't have internet connection. So i had to download all the dependencies and installed the same. Now i would like to create a complete package which includes all the dependencies

Main rpm - ansible-


  • python2-pyvmomi-6.5-1.el7.noarch.rpm
  • python-crypto-2.0.1-1.el7.rf.x86_64.rpm
  • python-crypto-2.6.1-1.el7.rf.x86_64.rpm
  • python-ecdsa-0.11-3.el7.centos.noarch.rpm
  • python-httplib2-0.7.7-3.el7.noarch.rpm
  • python-keyczar-0.71c-2.el7.noarch.rpm
  • python-paramiko-1.15.1-1.el7.noarch.rpm
  • python-pyasn1-0.1.6-2.el7.noarch.rpm
  • PyYAML-3.10-11.el7.x86_64.rpm
  • sshpass-1.05-5.el7.x86_64.rpm

I am listing out the complete list so in case if anyone needs this might help.

Is there any specific process to create a package ?


The packages are going to be installed one by one, and renaming them will probably break future updates to the system. Plus writing a monolithic package is gonna be frustrating a time consuming (alas you'd probably learn a lot)

You could just compress al the dependencies (ie. tar.gz) and then move them as a single file.

tar cvfz ansible-2-3-fulldeps.tar.gz *.rpm

After decompressing the file you can install all packages at once using a wildcard:

tar xvfz ansible-2-3-fulldeps.tar.gz
yum install *.rpm

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.