5 ms·
On my own systems, I use /opt for this purpose, including program installs and app images.
by glitchc 2y ago
On my own systems, I use /opt for this purpose, including program installs and app images.
- zahlman 2y agoYep, I'm in this camp. In particular, since the bin/lib dichotomy doesn't work well for everything[1], I'll put things free-form in /opt as needed, and then symlink executable entry points at /usr/local/bin. [2] This is also more or less what Pipx global installs (available since version 1.5.0) do (https://pipx.pypa.io/stable/installation/#-global-argument https://pipx.pypa.io/stable/installation/#-global-argument). [1] e.g. if you want to install Python applications in isolated virtual environments, the venv has its own bin/ and lib/ internally - you wouldn't want to flatten that structure and have all those applications share top-level /usr/local/bin and /usr/local/lib, because that would involve manually destroying the venv structure and also defeating the entire purpose of them. [2] although this is not completely smooth if, like me, you want to compile multiple versions of Python from source and then make venvs based off of them - see https://github.com/python/cpython/issues/106045 https://github.com/python/cpython/issues/106045 .
- precompute 2y agoSame. /opt/zz for loose binaries, dedicated folders for the rest.