from my laptop here:❯ ls /lib/7zip/
.rwxr-xr-x 711k root 27 Jun 00:32 7z
.rwxr-xr-x 2,8M root 27 Jun 00:32 7z.so
.rwxr-xr-x 1,7M root 27 Jun 00:32 7za
.rwxr-xr-x 408k root 27 Jun 00:32 7zCon.sfx <--here!
.rwxr-xr-x 1,2M root 27 Jun 00:32 7zr
As you can see it requires installing in path about 8Mb of stuff. Alike all the others old-idea mapping, also this implementation requires the root priviledges at a certain point. I agree that immediate execution of a gzip (or another compressed format) by pipe isn't the strongest point for uzpexec but a nice feature to have. In fact, wget $url -O- | zcat | /bin/sh **usually** works. Notice that **usually** works for the shell **scripts** but not for the binaries (and among shell scripting probably also the newer implementatation of gzcmd.sh which uses tmpfs for extracting and executing a binary)
However, it is extremely hard for a windows-tailored mind and more in general for a linux end user understand the value of uzpexec. It is not just a matter of its extreme low footprint, it is a matter of scale. And about scale, it is not **only** about size but also about various aspects like not root priviledge, compact delivery, immediate deplyment, piping, disk-less, etc. None of the solutions that you listed can be deployed into a dynamic scaling virtual-only system. Therefore, they never partecipate into what it would be able to sustain an app market for a supervisor OS. Inflating is another nice to have feature, not a must to have. It would be stupid not having it, in fact it has been implemented by `/bin/zcat` because it is an ancillary dimension. Again, modularity is a must-to-have design. Under this PoV, uzpexec offers the fundamental features those were currently **not** available. In the README.md, there are some example of use and as you can see they are pretty interesting for end-users as well.
Last but not least, trustability is **not** an issue for uzpexec becase the MIT+1 licensing terms and becuase the syscall are a contract with the Linux Kernel, if they are broken, then it is the kernel being broken not the uzpexec. Obviously, assuming that being open-source and 300 LoC allows being audited and bug fixed in a few days by every serious player that need to provide it (and in fact, it has the provider field as complementary in MIT+1). When someone cares to put a "provider" field into a 512-stub, and that stub is designed to be manipulated by a `sed` command to be adapted different scripting language, you have been granted since its design that the "market" of that tool isn't the end-users.
---
### 1. The Context: Official 7-Zip on Linux
Historically, 7-Zip was exclusively a Windows application. Linux users relied on a **third-party port** called **`p7zip`**.
However, since version **21.01**, Igor Pavlov (the creator of 7-Zip) introduced **official, upstream support for Linux**. As of this release, `p7zip` is considered deprecated and obsolete. The file structure you see in your `/lib/7zip/` directory (including `7z`, `7z.so`, `7za`, `7zr`, and `7zCon.sfx`) is compiled directly from the official upstream 7-Zip source code.
### 2. What is `7zCon.sfx`?
The `.sfx` file stands for **S**elf-**F**ormatting **Ex**ecutable (or Self-Extracting) stub.
* **Official Source:** The file `7zCon.sfx` is the official console-based self-extracting stub provided by 7-Zip. Your Linux distribution compiled it straight from the official source bundle (`SFXCon` in the source code).
* **Cross-Platform behavior:** * The SuperUser post you quoted is discussing creating a **Windows executable (`.exe`)** on Linux. To do this, they concatenated a Windows SFX stub (like `7zS.sfx` or `7z.sfx` from the Windows "extras" bundle) with a Linux-generated `.7z` file.
* The `7zCon.sfx` file on your laptop is the **native Linux console stub**. If you use `cat` to combine `7zCon.sfx` and a `.7z` file on your laptop, it will produce a **native Linux self-extracting executable** (which you would then run via `./FILE`).