FELF
FELF is a packaging format that deduces at pack-time all the shared libraries a program needs and packs them, together with its own glibc and a patched dynamic linker, into a single executable. The resulting binary runs on any Linux distro (including FROM SCRATCH Docker and Alpine) without FUSE, root, a runtime, or any special capability, supports coreutils-like multi-program binaries via symlinks, and can optionally restrict loading of arbitrary shared libraries at pack time. The submitter reports it works for complex apps like Krita; usage is via a CLI such as 'felf pack $(which git) --output git.felf'.
What it addresses
Redistributing programs that use shared libraries across Linux distros is painful: AppImage does too much and containers are overkill that do not always integrate smoothly, and sharing binaries between nix and other distros (or running nix apps without its package manager) remains difficult.
Shared over time
Each entry reflects what was shared on that date. Details may have changed since then.
FELF
FELF is a packaging format that deduces at pack-time all the shared libraries a program needs and packs them, together with its own glibc and a patched dynamic linker, into a single executable. The resulting binary runs on any Linux distro (including FROM SCRATCH Docker and Alpine) without FUSE, root, a runtime, or any special capability, supports coreutils-like multi-program binaries via symlinks, and can optionally restrict loading of arbitrary shared libraries at pack time. The submitter reports it works for complex apps like Krita; usage is via a CLI such as 'felf pack $(which git) --output git.felf'.
Problem: Redistributing programs that use shared libraries across Linux distros is painful: AppImage does too much and containers are overkill that do not always integrate smoothly, and sharing binaries between nix and other distros (or running nix apps without its package manager) remains difficult.
Posted by @Rucadi · Original source ↗
Story title · @Rucadi · · Source ↗
Show HN: FELF – AppImage-like single binaries without FUSE, root, or a runtime
Submitted URL · @Rucadi · · Source ↗
https://github.com/Rucadi/FELF
Source text · @Rucadi · · Source ↗
with the help of Claude, I've implemented a format that deduces at pack-time all the shared libraries a program needs, puts them, together with its own glibc and a patched dynamic linker into a single executable.
Source text · @Rucadi · · Source ↗
This means that you don't actually need a runtime nor any special capability, it can run inside a FROM SCRATCH docker, alpine linux etc... And it also supports coreutils-like multiple programs accessible via symlinks, so it is a good fit for that purpose.
Source text · @Rucadi · · Source ↗
I've always had a bad time redistributing programs that use shared libraries, AppImage in my opinion does too much, and a container is an overkill - not always integrates smoothly.
Source text · @Rucadi · · Source ↗
redistributing between nix and other distros or vice versa it's still a pain in the ass, more so if you want to run an alien app in nix or a nix app without the package manger in any other distro.
Source text · @Rucadi · · Source ↗
> felf pack $(which git) --output git.felf
Source text · @Rucadi · · Source ↗
And yes! I've tried complex programs like Krita, packaging and putting it on an empty ubuntu and it worked!