New to our community ?

Discover a world of possibilities! Join us and explore a vibrant community where ideas flourish and connections thrive.

One of Our Valued Members

Thank you for being part of our community. Your presence enriches our shared experiences. Let's continue this journey together!

Home CentOS How to install CMake on CentOS 8

How to install CMake on CentOS 8

How to install CMake on CentOS 8

Welcome back to another tutorial of CentOS. In our previous CentOS tutorial we learn how to install google chrome in CentOS.
Today in this post we will see how to install CMake On CentOS.

before start this tutorial we will take a short overview of CMake and CentOS.

CMake installation on CentOS

What is CMake.?

so basically CMake is a free, opensource and cross-platform family of tools designed to build, test and package the software.
It is developed by Kitware for a powerful, cross-platform build environment for open-source projects. 

Before Installation

Before start to install the CMake on our Linux machine. we must have the non-root user account on our desktop with sudo privileges.
so just follow the below steps for easy installation.

Install Latest Version of CMake CentOS

So before installing CMake we need to download its package first, and the reason behind is that because the CentOS Global Repository  does not provide us a latest version of CMake.
so no need to worry about it we will download our latest CMake package manually.

download CMake latest version

so just follow the below steps to download the latest version of CMake.
first we open the terminal by pressing ctr+alt+t in our CentOS machine.
for downloading latest package copy the below command and run it on terminal.


after running the above command the latest package will be downloaded in .tar format. so we are extracting this package by using tar command.

tar -zxvf cmake-3.15.2.tar.gz

after extracting our CMake package we will navigate it by using cd command.

cd cmake-3.15.2

Now we are running bootstrap file by following command.


After running the bootstrap command we need to Run make command


Now we will install CMake by below command.

sudo make install

Confirm installation and check version

Now confirm the installation and check the version by using below command.

cmake --version

So finally we learn how to install CMake in our CentOS machine. if this tutorial helps you than please support us and sharing this tutorial with your developer buddies.