
Once the package installed successfully, you can verify the installed files location by using dpkg -L cmake command as shown below. 217801 files and directories currently installed.) Selecting previously unselected package cmake-data. Get:4 focal/main amd64 cmake amd64 3.16.3-1ubuntu1

Get:3 focal/main amd64 librhash0 amd64 1.3.9-1 Get:2 focal/main amd64 libjsoncpp1 amd64 1.7.4-3.1ubuntu2 Get:1 focal/main amd64 cmake-data all 3.16.3-1ubuntu1 The following NEW packages will be installed:Ġ upgraded, 4 newly installed, 0 to remove and 46 not upgraded.Īfter this operation, 28.3 MB of additional disk space will be used. The following additional packages will be installed: This will download and install the package from default Ubuntu repo along with all its dependencies. Next step is to install cmake by using sudo apt install cmake command as shown below.
Install cmake cmake command not found how to#
How to Install cmake on Ubuntu 20.04 LTS (Focal Fossa)Īlso Read: How to Install Catch2 on Ubuntu 20.04 LTS (Focal Fossa) Step 1: PrerequisitesĪ) You should have a running Ubuntu 20.04 LTS Server.ī) You should have sudo or root access to run privileged commands.Ĭ) You should have apt or apt-get utility available in your System.įirst you need to update the system cache with all the latest available updates from Ubuntu repo by using sudo apt update command as shown below. Here we will see the steps to install on Ubuntu 20.04 LTS Server. cmake can be easily installed in any Linux based systems. It was designed as in response to the need for a powerful, cross-platform build environment for open-source projects such as ITK and VTK. It generate native makefiles and workspaces that can be used in the compiler environment of your choice.

CMake is cross-platform free and open-source software for build automation, testing, packaging and installation of software by using a compiler-independent configuration files. In this article, I will take you through the steps to install cmake on Ubuntu 20.04 LTS (Focal Fossa).
