Install CMake via Kitware's APT Repository by [following their instructions](https://apt.kitware.com/).
For other linux distributions you want to use your distributions package manager, [pip](https://pypi.org/project/cmake/) or [snap](https://snapcraft.io/cmake).