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

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

Maybe something like this: