How To Install cmake on Fedora 36
Introduction
In this tutorial we learn how to install cmake
on Fedora 36.
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 Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install cmake.
Install cmake on Fedora 36 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 Fedora 36 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
---
title: “How To Install cmake on Fedora 36”
How To Uninstall cmake on Fedora 36
linkTitle: “cmake”
type: “docs”
To uninstall only the cmake
package we can use the following command:
description: “In this tutorial we learn how to install cmake in Fedora 36. cmake is Cross-platform make system”
date: "2022-08-17"
sudo dnf remove cmake
lastmod: "2022-08-17"
#image: /images/fedora/36/cmake-featured.png
cmake Package Contents on Fedora 36
## Introduction
In this tutorial we learn how to install `cmake` on Fedora 36.
### 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 Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install cmake.
## Install cmake on Fedora 36 Using dnf
Update yum database with `dnf` using the following command.
```bash
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 Fedora 36 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 Fedora 36
To uninstall only the cmake
package we can use the following command:
sudo dnf remove cmake
cmake Package Contents on Fedora 36
/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/5b
/usr/lib/.build-id/5b/7fb85ca347435ffa9fbdfa819ad677d9f03ad2
/usr/lib/.build-id/75
/usr/lib/.build-id/75/1b121b48af2df6bb18ad9095de3febfd58e79c
/usr/lib/.build-id/98
/usr/lib/.build-id/98/8f67a96a1cba7403fbec08b6c2e6ccd64b3f9d
/usr/lib/.build-id/a6
/usr/lib/.build-id/a6/7beb7fa5bf9fb2642ce6c3aa155daff0f578df
/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-presets.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 Fedora 36 using yum and [dnf]((/fedora/36/dnf/).
/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/5d /usr/lib/.build-id/5d/07ed2228d73fd028651316a6606fa8a475c31f /usr/lib/.build-id/8b /usr/lib/.build-id/8b/60e20f2b163fb1f3d60c956ff3eab17dbb5c87 /usr/lib/.build-id/b9 /usr/lib/.build-id/b9/405321a3bf0ebd83afc9c7a4941681bd26a090 /usr/lib/.build-id/fc /usr/lib/.build-id/fc/6bd512d257963d574bb7a81a7db985eda4c4b7 /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-presets.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
* [cmake website](http://www.cmake.org)
## Summary
In this tutorial we learn how to install `cmake` on [Fedora 36](/fedora/36/) using [yum](/fedora/36/yum/) and [dnf]((/fedora/36/dnf/).