How To Install CMake On CentOS 8

Windows Articles

How to install Vanilla Forum on Ubuntu 20.04?

Hello, folks. This post is about how to install Vanilla Forum on Ubuntu 20.04. Vanilla is an opensource discussion...

How to backup and restore Group Policy Objects in Windows Server 2016/2019.

Hi! Previously we have mentioned that Windows Server pursues a centralized administration of each role and service. In this way, a fluid...

How to use the ls command?

The ls commands list the content and optional information of the directories and files. When you execute the Ls command without options,...

How to Install APK file on Android

Hello Friends! Today we bring you a simple guide on how to install an APK file in Android. What...

How to Install the Latest version of FFmpeg on Ubuntu 20.04 / Debian 10?

Knowing how to install the latest version of FFmpeg is important if you know how to work with multimedia files. So in...

Today we are going to learn that how to install CMake on CentOS 8. CMake is an open source & cross platform used to devleop, test & package the software. So, in this article you are going to cover the installation of CMake on CentOS 8.

Step 1: Update Your System

Firstly update yours system to have the latest packages installed.

sudo yum -y update

Step 2: Installing CMake on CentOS 8

As the CentOS Global repository doesn’t provides the latest version of the CMake so you’ve to manually download it and then instal it on your CentOS 8 system.

Fire the below command to download the latest version of CMake on CentOS 8.

wget https://github.com/Kitware/CMake/releases/download/v3.17.3/cmake-3.17.3.tar.gz

Once the download finished, extract the downloaded package with the help of below command.

tar -zxvf cmake-3.17.3.tar.gz

Then switch to the resultant directory.

cd cmake-3.17.3

Now, run the following command to bootstrap cmake.

./bootstrap

Then run the make command.

make

And finally install the CMake using the below command.

sudo make install

Verify the installed version by typing

sudo --version

Step 3: Installing CMake from SnapCraft

You can also install the latest version of CMake with the help of SnapCraft. To do so hit the below listed commands.

sudo yum install epel-release
sudo yum install snapd
sudo systemctl enable --now snapd.socket
sudo ln -s /var/lib/snapd/snap /snap
sudo snap install cmake --classic

So, this is how you can install CMake on CentOS 8. Do not forget to share this post and join our Telegram Channel.

More articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest article

How to install Vanilla Forum on Ubuntu 20.04?

Hello, folks. This post is about how to install Vanilla Forum on Ubuntu 20.04. Vanilla is an opensource discussion...

How to backup and restore Group Policy Objects in Windows Server 2016/2019.

Hi! Previously we have mentioned that Windows Server pursues a centralized administration of each role and service. In this way, a fluid...

How to use the ls command?

The ls commands list the content and optional information of the directories and files. When you execute the Ls command without options,...

How to Install APK file on Android

Hello Friends! Today we bring you a simple guide on how to install an APK file in Android. What...

How to Install the Latest version of FFmpeg on Ubuntu 20.04 / Debian 10?

Knowing how to install the latest version of FFmpeg is important if you know how to work with multimedia files. So in...
x