Getting latest version of cmake using apt-get

I’m building a machine using Vagrant, the box is bionic64. “apt-get install cmake” gives me version 3.10.2. Is that the latest I can use, on Ubuntu 18.04? I was hoping for something closer to 3.29.

It’s typical to extract the binary executables for CMake from Releases · Kitware/CMake · GitHub
which are compiled against a GLIBCXX old enough to work on most Linux systems.

OK, but how do I do that in an automated way, in the Vagrant file? (I’ve installed newer versions manually, yes).

I would use curl, then tar to extract and put that extracted bin path on env car Path. That should be three lines of shell script for the vagrant file

OK, thanks for the help.