To create a portable linux application
by BudiKusasi from LinuxQuestions.org on (#5EJQC)
How is the definitive way to create a portable linux application having its own separated dependencies in a separated partition
Tried to have that for Audacious on Debian but even if it and its additional deps (not ready in Debian base as it installed) all collected and move in /opt partition, it search them on / system root.
e.g its deps
Code:/lib/x86_64-linux-gnu/libmount.so.1
/lib/x86_64-linux-gnu/libselinux.so.1
/lib/x86_64-linux-gnu/libresolv.so.2
/lib/x86_64-linux-gnu/libffi.so.6
/lib/x86_64-linux-gnu/libpcre.so.3
/lib/x86_64-linux-gnu/libicui18n.so.63
/lib/x86_64-linux-gnu/libicuuc.so.63
/lib/x86_64-linux-gnu/libpcre2-16.so.0
/lib/x86_64-linux-gnu/libdouble-conversion.so.1
/lib/x86_64-linux-gnu/libblkid.so.1
/lib/x86_64-linux-gnu/librt.so.1
/lib/x86_64-linux-gnu/libicudata.so.63
/lib/x86_64-linux-gnu/libuuid.so.1So how is the definitve correct way to make such app "portable" or like in its own "container" put in /opt partition?


Tried to have that for Audacious on Debian but even if it and its additional deps (not ready in Debian base as it installed) all collected and move in /opt partition, it search them on / system root.
e.g its deps
Code:/lib/x86_64-linux-gnu/libmount.so.1
/lib/x86_64-linux-gnu/libselinux.so.1
/lib/x86_64-linux-gnu/libresolv.so.2
/lib/x86_64-linux-gnu/libffi.so.6
/lib/x86_64-linux-gnu/libpcre.so.3
/lib/x86_64-linux-gnu/libicui18n.so.63
/lib/x86_64-linux-gnu/libicuuc.so.63
/lib/x86_64-linux-gnu/libpcre2-16.so.0
/lib/x86_64-linux-gnu/libdouble-conversion.so.1
/lib/x86_64-linux-gnu/libblkid.so.1
/lib/x86_64-linux-gnu/librt.so.1
/lib/x86_64-linux-gnu/libicudata.so.63
/lib/x86_64-linux-gnu/libuuid.so.1So how is the definitve correct way to make such app "portable" or like in its own "container" put in /opt partition?