How to install clang-14 on Ubuntu 23.10?

How to install clang-14 on Ubuntu 23.10 ?

The command apt list --all-versions shows only version 16.
I need the older version due to a project requirement.

Asked By: ss01x

||

The package clang-14 is available for Ubuntu 23.10 from the universe repository … You’ll need to add/enable the universe branch first with for example:

sudo add-apt-repository universe

… then, update your repositories cache with:

sudo apt update

… then, simply install it like so:

sudo apt install clang-14
Answered By: Raffa
Categories: Answers Tags: , ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.