LinuxCommandLibrary

unzipsfx

Create self-extracting ZIP executables

TLDR

TLDR

Create self-extracting binary

$ cat $(which unzipsfx) [path/to/archive.zip] > [filename] && chmod 755 [filename]
copy
Extract self-extracting binary
$ ./[path/to/binary]
copy
Test for errors
$ ./[path/to/binary] -t
copy
Print file content without extracting
$ ./[path/to/binary] -c [path/to/file]
copy
Show comments
$ ./[path/to/binary] -z
copy

SYNOPSIS

unzipsfx is typically concatenated with a ZIP archive

DESCRIPTION

unzipsfx creates self-extracting compressed binary files by prepending self-extracting stubs to ZIP archives. The resulting executable can extract itself without requiring unzip to be installed.
The stub is typically concatenated with a ZIP archive using cat, then made executable.

PARAMETERS

-t

Test archive for errors
-c FILE
Print file content without extraction
-z
Print archive comments

CAVEATS

Self-extracting binaries are platform-specific. The stub adds size overhead to the archive. Some systems may block execution of self-extracting archives.

SEE ALSO

zip(1), unzip(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community