How can I update a specific library?

I’d like to get the latest version of libxkbcommon0 to get the option of setting the caps lock action to be on press and not on release. For this I need version 1.11, but Ubuntu comes with version 1.7.

you could try adding backports to and see if the newer version is there… otherwise, you will probably have to compile it yourself.

Ubuntu, especially LTS, prioritises stability - so you have the old, but well tested, 1.7.

You didn’t state what version of Ubuntu you have, 1.11 was released May 2024, 1.12 August 2024… so sure, maybe you have to build, or use containerized formats instead.

I think backports are problematic, and core libraries are very rarely backported because they’ll break compatibility and destabilise the system…

I’d start searching for a PPA too.

Manjaro has libxkbcommon 1.12.3-1 in the repos.