How To Install cmake on Rocky Linux 8
Introduction
In this tutorial we learn how to install cmake
on Rocky Linux 8.
What is cmake
CMake is used to control the software compilation process using simple platform and compiler independent configuration files. CMake generates native makefiles and workspaces that can be used in the compiler environment of your choice. CMake is quite sophisticated to support complex environments requiring system configuration, preprocessor generation, code generation, and template instantiation.
We can use yum
or dnf
to install cmake
on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install cmake.
Install cmake on Rocky Linux 8 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
After updating yum database, We can install cmake
using dnf
by running the following command:
sudo dnf -y install cmake
Install cmake on Rocky Linux 8 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
After updating yum database, We can install cmake
using yum
by running the following command:
sudo yum -y install cmake
How To Uninstall cmake on Rocky Linux 8
To uninstall only the cmake
package we can use the following command:
sudo dnf remove cmake
cmake Package Contents on Rocky Linux 8
/usr/bin/ccmake
/usr/bin/ccmake3
/usr/bin/cmake
/usr/bin/cmake3
/usr/bin/cpack
/usr/bin/cpack3
/usr/bin/ctest
/usr/bin/ctest3
/usr/lib/.build-id
/usr/lib/.build-id/09
/usr/lib/.build-id/09/47589a840ee02ddc06608cb4b7521c4d61fcc0
/usr/lib/.build-id/d3
/usr/lib/.build-id/d3/ec703fea9e3a7bac3d8d4f3c404e935a97db6d
/usr/lib/.build-id/d9
/usr/lib/.build-id/d9/2445d83fc01adbd888c462cf22f6eed1b1104a
/usr/lib/.build-id/f9
/usr/lib/.build-id/f9/dd6272d8d2d6c84d92b643db57129ab992e37f
/usr/share/doc/cmake
/usr/share/licenses/cmake
/usr/share/licenses/cmake/COPYING_cmcurl
/usr/share/licenses/cmake/COPYING_cmexpat
/usr/share/licenses/cmake/COPYING_cmlibarchive
/usr/share/licenses/cmake/COPYING_cmliblzma
/usr/share/licenses/cmake/COPYING_cmlibrhash
/usr/share/licenses/cmake/COPYING_cmnghttp2
/usr/share/licenses/cmake/Copyright.txt
/usr/share/licenses/cmake/Copyright.txt_KWIML
/usr/share/licenses/cmake/Copyright.txt_cmzlib
/usr/share/licenses/cmake/Copyright.txt_kwsys
/usr/share/man/man1/ccmake.1.gz
/usr/share/man/man1/cmake.1.gz
/usr/share/man/man1/cpack.1.gz
/usr/share/man/man1/ctest.1.gz
/usr/share/man/man7/cmake-buildsystem.7.gz
/usr/share/man/man7/cmake-commands.7.gz
/usr/share/man/man7/cmake-compile-features.7.gz
/usr/share/man/man7/cmake-developer.7.gz
/usr/share/man/man7/cmake-env-variables.7.gz
/usr/share/man/man7/cmake-file-api.7.gz
/usr/share/man/man7/cmake-generator-expressions.7.gz
/usr/share/man/man7/cmake-generators.7.gz
/usr/share/man/man7/cmake-language.7.gz
/usr/share/man/man7/cmake-modules.7.gz
/usr/share/man/man7/cmake-packages.7.gz
/usr/share/man/man7/cmake-policies.7.gz
/usr/share/man/man7/cmake-properties.7.gz
/usr/share/man/man7/cmake-qt.7.gz
/usr/share/man/man7/cmake-server.7.gz
/usr/share/man/man7/cmake-toolchains.7.gz
/usr/share/man/man7/cmake-variables.7.gz
/usr/share/man/man7/cpack-generators.7.gz
/usr/bin/ccmake
/usr/bin/cmake
/usr/bin/cpack
/usr/bin/ctest
/usr/lib/.build-id
/usr/lib/.build-id/2f
/usr/lib/.build-id/2f/9ead404b231d004fbc31cc074ad6e150a3f24e
/usr/lib/.build-id/48
/usr/lib/.build-id/48/d33fe405b5834cbc76f5e07cd36cc51b77de69
/usr/lib/.build-id/50
/usr/lib/.build-id/50/9a0f3a011b6cde563e3e112f370d799170cf89
/usr/lib/.build-id/ef
/usr/lib/.build-id/ef/b2040702e5907d3d932b2df36b4577a4f29c5b
/usr/share/doc/cmake
/usr/share/licenses/cmake
/usr/share/licenses/cmake/COPYING_cmcurl
/usr/share/licenses/cmake/COPYING_cmexpat
/usr/share/licenses/cmake/COPYING_cmlibarchive
/usr/share/licenses/cmake/COPYING_cmliblzma
/usr/share/licenses/cmake/COPYING_cmlibrhash
/usr/share/licenses/cmake/COPYING_cmnghttp2
/usr/share/licenses/cmake/Copyright.txt
/usr/share/licenses/cmake/Copyright.txt_KWIML
/usr/share/licenses/cmake/Copyright.txt_cmzlib
/usr/share/licenses/cmake/Copyright.txt_kwsys
/usr/share/man/man1/ccmake.1.gz
/usr/share/man/man1/cmake.1.gz
/usr/share/man/man1/cpack.1.gz
/usr/share/man/man1/ctest.1.gz
/usr/share/man/man7/cmake-buildsystem.7.gz
/usr/share/man/man7/cmake-commands.7.gz
/usr/share/man/man7/cmake-compile-features.7.gz
/usr/share/man/man7/cmake-developer.7.gz
/usr/share/man/man7/cmake-env-variables.7.gz
/usr/share/man/man7/cmake-file-api.7.gz
/usr/share/man/man7/cmake-generator-expressions.7.gz
/usr/share/man/man7/cmake-generators.7.gz
/usr/share/man/man7/cmake-language.7.gz
/usr/share/man/man7/cmake-modules.7.gz
/usr/share/man/man7/cmake-packages.7.gz
/usr/share/man/man7/cmake-policies.7.gz
/usr/share/man/man7/cmake-properties.7.gz
/usr/share/man/man7/cmake-qt.7.gz
/usr/share/man/man7/cmake-server.7.gz
/usr/share/man/man7/cmake-toolchains.7.gz
/usr/share/man/man7/cmake-variables.7.gz
/usr/share/man/man7/cpack-generators.7.gz
References
Summary
In this tutorial we learn how to install cmake
on Rocky Linux 8 using yum and dnf.