Self-Extracting tar files
I've created an example of how to create a simple self extracting tar file for my reference.
1) First create/identify a tar file that you wish to become self extracting.
>ls -l example/
2) Create the self extracting script. I've called the script extract.sh
> cat extract.sh
#remember our file name
# take the tarfile and pipe it into tar
3) Concatenate The script and the tar file together.
> cat extract.sh example.tar.gz > example.sh
4) Now test in another directory.
Self Extracting Tar File
Example by Stuart Wells
Extracting file into /tmp