makeself: make self-extractable archives on Unix

makeself is a small shell script that generates a self-extractable tar.gz archive from a directory. The resulting file appears as a shell script (many of those have a .run suffix), and can be launched as is. The archive will then uncompress itself to a temporary directory and an optional arbitrary command will be executed (for example an installation script). This is pretty similar to archives generated with WinZip Self-Extractor in the Windows world. Makeself archives also include checksums for integrity self-validation (CRC and/or MD5 checksums).

To install it on Debian/Ubuntu:

  • apt-get install makeself

Here is an example, assuming the user has a package image stored in a /home/joe/mysoft, and he wants to generate a self-extracting package named mysoft.sh, which will launch the “setup” script initially stored in /home/joe/mysoft :

  • makeself.sh /home/joe/mysoft mysoft.sh “Joe's Nice Software Package” ./setup
software/makeself-make-self-extractable-archives-on-unix.txt · Last modified: 2009/01/19 11:06 by wilson

www.chimeric.de Creative Commons License Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0