1MAKESELF(1) General Commands Manual MAKESELF(1)
2
3
4
6 makeself - An utility to generate self-extractable archives.
7
9 makeself [options] archive_dir file_name label [startup_script] [args]
10
12 This program is a free (GPL) shell utility designed to create self-ex‐
13 tractable compressed archives from a directory. The resulting file ap‐
14 pears as a shell script, and can be launched as is. The archive will
15 then uncompress itself to a temporary directory and an optional arbi‐
16 trary command will be executed (for example an installation script).
17
18 Makeself archives also include checksums for integrity self-validation
19 (CRC and/or MD5/SHA256 checksums).
20
22 The following options are supported:
23
24 -v, --version Prints out the makeself version number and exits.
25
26 -h, --help Print out help information.
27
28 --tar-quietly Suppress verbose output from the tar command
29
30 --quiet Do not print any messages other than errors
31
32 --gzip Compress using gzip (default if detected).
33
34 --bzip2 Compress using bzip2.
35
36 --bzip3 Compress using bzip3.
37
38 --pbzip2 Compress using pbzip2.
39
40 --xz Compress using xz.
41
42 --lzo Compress using lzop.
43
44 --lz4 Compress using lz4.
45
46 --pigz Compress using pigz.
47
48 --zstd Compress using zstd.
49
50 --base64 Encode the archive to ASCII in Base64 format instead of
51 compressing (base64 command required).
52
53 --gpg-encrypt Encrypt the archive using GPG. This will prompt for a
54 password to encrypt with.
55
56 --ssl-encrypt Encrypt the archive using OpenSSL. This will prompt for
57 a password to encrypt with.
58
59 --keep-umask Keep the umask set to shell default, rather than over‐
60 riding when executing the self-extracting archive.
61
62 --compress Compress using the UNIX 'compress' command.
63
64 --nocomp Do not compress the data.
65
66 --complevel lvl
67 Specify the compression level for gzip, bzip2, pbzip2,
68 xz, zstd, lzo or lz4. Defaults to 9.
69
70 --threads num Specify the number of threads to be used by compressors
71 that support parallelization.
72
73 --tar-format opt
74 Specify the tar archive format (default is ustar); you
75 may use any value accepted by your tar command (such as
76 posix, v7, etc).
77
78 --tar-extra opt
79 Append more options to the tar command line.
80
81 --notemp The archive will create archive_dir in the current di‐
82 rectory and uncompress in ./archive_dir.
83
84 --copy Upon extraction, the archive will first copy itself to a
85 temporary directory.
86
87 --append Append more files to an existing makeself archive. The
88 label and startup scripts will then be ignored.
89
90 --current Files will be extracted to the current directory. Both
91 --current and --target dir imply --notemp.
92
93 --target dir Extract directly to a target directory. Directory path
94 can be either absolute or relative.
95
96 --header file Specify location of the header script.
97
98 --help-header file
99 Add a header to the archive's help output.
100
101 --cleanup file Specify a cleanup script that executes on interrupt and
102 when finished successfully.
103
104 --follow Follow the symlinks in the archive.
105
106 --noprogress Do not show the progress during the decompression.
107
108 --nooverwrite Do not extract the archive if the target directory al‐
109 ready exists.
110
111 --nox11 Disable automatic spawn of an xterm if running in X11.
112
113 --nowait Do not wait for user input after executing embedded pro‐
114 gram from an xterm.
115
116 --nomd5 Do not create a MD5 checksum for the archive.
117
118 --sha256 Adds a SHA256 checksum for the archive.
119
120 --nocrc Do not create a CRC32 checksum for the archive.
121
122 --lsm file LSM file describing the package.
123
124 --license file Append a license file.
125
126 --packaging-date date
127 Use provided string as the packaging date instead of the
128 current date.
129
130
131 EXAMPLES
132 Here is an example, assuming the user has a package image stored
133 in a /home/joe/mysoft, and he wants to generate a self-extract‐
134 ing package named mysoft.sh, which will launch the "setup"
135 script initially stored in /home/joe/mysoft:
136
137 makeself.sh /home/joe/mysoft mysoft.sh "Joe's Nice Software Package"
138 ./setup
139
140 Here is also how I created the makeself.run archive which contains the
141 Makeself distribution:
142
143 makeself.sh --notemp makeself makeself.run "Makeself by Stephane Peter"
144 echo "Makeself has extracted itself"
145
147 Makeself has been written by Stephane Peter <megastep@megastep.org>.
148 This man page was originally written by Bartosz Fenski <fenio@o2.pl>
149 for the Debian GNU/Linux distribution (but it may be used by others).
150
151
152
153 2.5.0 MAKESELF(1)