If I understand correctly, you're looking for something portable — a file manager that can run from its own directory (even from a network mount) without relying on system-wide libraries.
Since you’re looking for a simple
portable file manager that you can run from wherever it lives (even a network drive) without pulling in extra libs, and you’ve mentioned tools like fmx, the closest matches on FreeBSD right now are small
terminal-based managers that can be built
with minimal dependencies.
Here are good options:
- nnn – very lightweight, minimal deps, fast
- lf – simple, keyboard-oriented, few deps
- vifm – more capable vi-like interface
- mc – the classic, but larger than nnn/lf
- ranger – Python based (more deps)
If you need the file manager to be truly self-contained and not installed into system paths, there are two practical approaches.
First option is building with static linking, if the port supports it. From the ports tree you can try running:
make clean
make LDFLAGS=-static
Not all ports support fully static builds, but with smaller tools like nnn or lf this is often possible depending on the selected options.
Second option is to ship the binary together with its required shared libraries and use a small wrapper script. If the program is dynamically linked, place the executable and a "lib" directory (containing the needed shared libraries) in the same folder, then create a wrapper script like this:
#!/bin/sh
DIR=$(dirname "$0")
export LD_LIBRARY_PATH="$DIR/lib"
exec "$DIR/nnn" "$@"
Make the script executable and run it from that directory. This allows you to launch the tool even from a network drive without installing it system-wide.
If you want the smallest possible footprint with minimal dependencies, start with nnn or lf, build them locally with minimal options (make config in ports), and use the wrapper approach so the tool runs independently of the system library path.
That should meet both your previous and current requirement: a lightweight terminal file manager that can run from a local or network directory without needing a traditional installation.