Scroll to navigation

MAKESELF(1) General Commands Manual MAKESELF(1)

NAME

makeself - An utility to generate self-extractable archives.

SYNTAX

makeself [options] archive_dir file_name label [startup_script] [args]

DESCRIPTION

This program is a free (GPL) shell utility designed to create self-extractable compressed archives from a directory. The resulting file appears as a shell script, 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).

OPTIONS

The following options are supported:

Prints out the makeself version number and exits.
Print out help information.
Suppress verbose output from the tar command
Do not print any messages other than errors
Compress using gzip (default if detected).
Compress using bzip2.
Compress using bzip3.
Compress using pbzip2.
Compress using xz.
Compress using lzop.
Compress using lz4.
Compress using pigz.
Compress using zstd.
Encode the archive to ASCII in Base64 format instead of compressing (base64 command required).
Encrypt the archive using GPG. This will prompt for a password to encrypt with.
Encrypt the archive using OpenSSL. This will prompt for a password to encrypt with.
Keep the umask set to shell default, rather than overriding when executing the self-extracting archive.
Compress using the UNIX 'compress' command.
Do not compress the data.
Specify the compression level for gzip, bzip2, pbzip2, xz, zstd, lzo or lz4. Defaults to 9.
Specify the number of threads to be used by compressors that support parallelization.

Specify the tar archive format (default is ustar); you may use any value accepted by your tar command (such as posix, v7, etc).
Append more options to the tar command line.
The archive will create archive_dir in the current directory and uncompress in ./archive_dir.
Upon extraction, the archive will first copy itself to a temporary directory.
Append more files to an existing makeself archive. The label and startup scripts will then be ignored.
Files will be extracted to the current directory. Both --current and --target dir imply --notemp.
Extract directly to a target directory. Directory path can be either absolute or relative.
Specify location of the header script.
Add a header to the archive's help output.
Specify a cleanup script that executes on interrupt and when finished successfully.
Follow the symlinks in the archive.
Do not show the progress during the decompression.
Do not extract the archive if the target directory already exists.
Disable automatic spawn of an xterm if running in X11.
Do not wait for user input after executing embedded program from an xterm.
Do not create a MD5 checksum for the archive.
Adds a SHA256 checksum for the archive.
Do not create a CRC32 checksum for the archive.
LSM file describing the package.
Append a license file.
Use provided string as the packaging date instead of the current date.

EXAMPLES

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:

AUTHORS

Makeself has been written by Stephane Peter <megastep@megastep.org>. This man page was originally written by Bartosz Fenski <fenio@o2.pl> for the Debian GNU/Linux distribution (but it may be used by others).

2.5.0