Show HN: FELF – AppImage-like single binaries without FUSE, root, or a runtime g...

@show

Show HN: FELF – AppImage-like single binaries without FUSE, root, or a runtime github.com · 3 points · 1 comments · HN thread

TL;DR FELF is a Linux packaging format and CLI by Rucadi that packs an existing dynamic executable together with its shared libraries, a private glibc and a patched dynamic linker into one file. The result runs on other Linux distros without FUSE, root, a runtime, or extraction to disk. The README compares it with AppImage, Flatpak, Snap, static linking and Docker, and describes memory-sharing and multi-program features. The HN thread has only one comment, which is positive and asks about deduplication and games.

  • felf pack takes an existing dynamic binary (e.g. git) and embeds its needed shared libraries, glibc, and a patched ld.so; the output runs with an empty environment on other distros.
  • Libraries are mapped directly from the FELF file rather than copied to memfds or /tmp, so page cache is shared across running processes; a benchmark reports 15 MB vs 53 MB PSS for 10 perl processes.
  • Multiple programs can share one FELF and deduplicate libc and other libraries; argv[0] selects the program, and multicall binaries like coreutils are supported via aliases.
  • FELF is a distribution format, not a sandbox; strict mode limits which libraries load, and host GPU drivers (GL, Vulkan, Mesa, NVIDIA) are still taken from the host.
  • Data and config files are not embedded; they ship alongside the FELF in a tar.gz tree bundle with a FELF_ROOT variable.
  • Licensing note: the project is Apache 2.0, but embedded glibc is LGPL, so redistribution carries LGPL terms; the project was built with Claude as stated in the README.

Links in the post

  • xkcd 927: Standards: Comic about how every new attempt at a universal standard adds one more competing standard; cited by the author to joke about the many packaging formats.

Discussion The thread is very short, with a single comment. The one commenter is enthusiastic, calling the work impressive and saying they plan to try it. They compare it to their own earlier project, appseed, which bundled libraries externally and struggled with apps like OBS Studio. They ask whether FELF could store shared libraries externally for deduplication, whether games could be packaged this way, and what the author sees as the main benefits and next steps. The author has not replied in the thread, so the mood is uniformly positive with no pushback.

  • Impressive approach; plans to try it (a few): The commenter finds the work beautiful and impressive, says FELF can handle complex apps like OBS, and intends to test it.
  • External library files may aid deduplication (a few): Based on experience with appseed, the commenter suggests keeping .so files outside the binary as an option, which could allow deduplication across packages.
  • Could package games as single binaries (a few): The commenter wonders whether games could be packed into single runnable binaries, similar to containerized games.

Links from the comments

#linux #packaging #shell #glibc #appimage