# How to unarchive a tar file locally and extract a deb package locally

**URL:** <https://forum.ansible.com/t/how-to-unarchive-a-tar-file-locally-and-extract-a-deb-package-locally/17883>\
**Category:** Ansible Project\
**Tags:** awx\
**Created:** [March 31, 2015, 2:00pm UTC](https://forum.ansible.com/t/how-to-unarchive-a-tar-file-locally-and-extract-a-deb-package-locally/17883 "2015-03-31T14:00:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![txavier](https://avatars.discourse-cdn.com/v4/letter/t/858c86/32.png) [@txavier](https://forum.ansible.com/u/txavier)\
**Post date:** [March 31, 2015, 2:00pm UTC](https://forum.ansible.com/t/how-to-unarchive-a-tar-file-locally-and-extract-a-deb-package-locally/17883/1 "2015-03-31T14:00:42Z")

</div>

Hi Team,

Can you please help me out to extract a tar file locally which contains a .deb file and then need to extract the .deb file and then copy to destiny(remote machine).

**ansimanager@ip-10-157-85-102:/var/lib/awx/projects/optimizer\_deployment/content$ tar -tf optimizerappl-5.5.1-rel-12.tar**  
**optimizerappl.msdlca\_5.5.1-rel-12\_all.deb**

Many Thanks  
Thomas Xavier

---

<div class="post-metadata">

**Author:** ![Toshio\_Kuratomi](https://avatars.discourse-cdn.com/v4/letter/t/41988e/32.png) [@Toshio\_Kuratomi](https://forum.ansible.com/u/Toshio_Kuratomi)\
**Post date:** [April 1, 2015, 5:22pm UTC](https://forum.ansible.com/t/how-to-unarchive-a-tar-file-locally-and-extract-a-deb-package-locally/17883/2 "2015-04-01T17:22:57Z")

</div>

Maybe something like this:
