And it's only Linux that has that problem in that dimension. Windows just kept everything around. Other systems don't evolve as much as Linux has, and they do not have the distribution differences that kill compatibility on Linux.
AppImage is great and solves that problem. It should be used more.
There are examples of binaries written against a UNIX kernel from 30 years ago that run just fine.
If you start adding dependencies on libraries you are choosing to have one of these problems:
- use dynamic libraries and refuse to cooperate with maintainers and things will break, rightfully so
- use dynamic libraries and the OS keep them around forever and it will become a security dumpster fire over time (and also will never scale down to embedded systems and phones)
- use dynamic libraries and ship them in a tarball and it will become a security dumpster fire over time
- use static libraries and it will become a security dumpster fire over time, plus it's even more difficult to tell what libraries are used
- use dynamic libraries and ship them with docker or appimage or similar and it will become a security dumpster fire over time, plus you have unnecessary complexity
- use dynamic libraries and package your stuff properly. Target LTS releases. Most good distributions will guarantee 5 years of stability of all the dependencies without version changes. Plus you get free backported security fixes and free testing.
> And it's only Linux that has that problem in that dimension
Not at all.
> AppImage is great and solves that problem. It should be used more.
Not at all.
It could be nice to not have to worry about all that compatibility and even some upgrade-issues that inevitably ensue. Though the costs can quickly outweigh the benefits, ie. as in the awfulness of "snap" and similar.
Windows do have compatibility and emulation layers, though some older software may still have some issues, it often works. Security-wise it's a good idea to keep patches and upgrades fresh.
- it has nothing to do with "backward" compatibility
- it has nothing to do with Linux. If you change shared libraries with incompatible versions software will break on windows and bsd as well