How to install CMake on Debian 10

How to install CMake on Debian 10

Install CMake on Debian 10

CMake is a free, open source, cross-platform family of tools designed to build, test, and package software. Created by kitware for a powerful cross-platform build environment for open source projects such as VTK and ITK. In this tutorial, you will learn how to install CMake on Debian 10.


Before you start installing CMake on Debian 10, you need a non-root user account on a system with sudo privileges.

Install the latest version of CMake

The Debian Global Repository does not provide the latest version of CMake. Here, CMake is installed by first downloading and then installing.

First, press to open the terminal Ctrl+Alt+t On the Debian system.

download now CMake To follow wget Terminal commands:


Unzip the downloaded file cmake-3.15.2.tar.gz Using file tar command:

tar -zxvf cmake-3.15.2.tar.gz

Navigate to the extracted directory using cd Commands such as:

cd cmake-3.15.2

Next run bootstrap The file to bootstrap cmake Enter the following command in a terminal:


Run make command:


install cmake using make The following command:

sudo make install

Confirm installation

Next, check the installation, cmake Version to enter the following command in terminal:

cmake --version


You learned how to install CMake on Debian 10. If you have questions about this, don’t forget the comments below.