3 ms·
Or just use the Debian Alternatives system to install PHP 8.0 and make it the system default: https://wiki.debian.org/DebianAlternatives https://wiki.debian.or
by SkyMarshal 5y ago
Or just use the Debian Alternatives system to install PHP 8.0 and make it the system default:
https://wiki.debian.org/DebianAlternatives https://wiki.debian.org/DebianAlternatives
Once setup, one command can toggle between your version and the Debian repo version as the system default.
DA is great, I used it for years on Ubuntu to override Debian's older default versions, or to install anything I wanted to build from source.
I eventually migrated over to NixOS because, in a way, NixOS takes the concept of Debian Alternatives and applies it to the entire OS.
- robertlagrant 5y agoThis is why I like nvm/pyenv. Available versions should be managed via a tool, not by the system.
- iso8859-1 5y agoThis is why I like Nix. The tool should be the system.
- SkyMarshal 5y agoSure, if your tool is aware of its own versions and can do that, that should be the preference over most systems, Nix/NixOS/GUIX excepted. But it's nice for traditional systems like Debian to be able to do it too, for tools that can't.