# Installer cmake avec Homebrew, apk, chocolatey, apt, dnf, MacPorts, Nix, pacman, zypper, scoop, winget

Consultez les chemins d'installation, exécutables, métadonnées et notes de sécurité de cmake pour les workflows d'agents IA.

## installation

```sh
sudo av install brew:cmake
```

## Réponse sur la sécurité des agents

cmake configures native builds and can run project-defined build commands.

- **Accès aux identifiants:** Reads environment variables, toolchain files, and project config.
- **Modification distante:** Usually local, but custom commands can call external services.
- **Risque de publication ou d'artéfact:** Can produce native release artifacts and installer packages.
- **Contrôle recommandé:** Gate install/package targets and custom commands that use secrets.
- **Conseils d'utilisation par les agents:** Allow configure/build in scanned worktrees; require approval for install, package, and secret-backed custom targets.

Commandes d'installation supplémentaires:

### macOS

- Homebrew (100%):

```sh
brew install cmake
```

  Preuve: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install cmake
```

  Preuve: MacPorts ports tree: devel/cmake/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add cmake
```

  Preuve: Alpine Linux edge package indexes: cmake from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz

- Debian apt (92%):

```sh
sudo apt install cmake
```

  Preuve: Debian stable package indexes: cmake from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install cmake
```

  Preuve: Fedora Rawhide package metadata: cmake from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#cmake
```

  Preuve: nixpkgs package indexes: pkgs/by-name/cm/cmake/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S cmake
```

  Preuve: Arch Linux sync databases: cmake from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install cmake
```

  Preuve: openSUSE Tumbleweed package metadata: cmake from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

### Windows

- Chocolatey (92%):

```sh
choco install cmake
```

  Preuve: Chocolatey community package catalog: cmake from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','cloudquery'

- Scoop (92%):

```sh
scoop install main/cmake
```

  Preuve: Scoop official bucket manifest trees: bucket/cmake.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

- winget (92%):

```sh
winget install --id Kitware.CMake -e
```

  Preuve: Windows Package Manager source index: Kitware.CMake from https://cdn.winget.microsoft.com/cache/source.msix

## Faits du paquet

- **Clé du paquet:** brew:cmake
- **Gestionnaire de paquets:** Homebrew
- **Version:** 4.4.2
- **Résumé source:** Cross-platform make
- **Page d'accueil:** <https://www.cmake.org/>
- **Dépôt:** <https://github.com/Kitware/CMake>
- **Dernière mise à jour:** 2026-07-31T21:49:00Z
- **Généré:** 2026-08-03T19:37:03+00:00

## exécutables

- ccmake (alias)
- cmake (alias)
- cpack (alias)
- ctest (alias)

## Comportement d'installation

- Bouteille: non disponible

## Version et fraîcheur

- page générée: 2026-08-03
- version du gestionnaire: 4.4.2
## Historique du projet et usages

CMake is Kitware's cross-platform build, test, and package tooling family. It began as infrastructure for large portable C++ scientific software and became the de facto build-system interface for much of the C and C++ open source ecosystem.

### Historique du projet

The official CMake history says CMake was created in 2000 for the National Library of Medicine's Insight Toolkit, after Bill Hoffman concluded that a new portable C++ build tool was needed. The early design goals were native build-tool support, one input file across platforms, bootstrap portability with only a C++ compiler, and code-generator support.

### Historique d'adoption

CMake moved from ITK into VTK and ParaView in 2002, then into major open source projects over time. The official timeline highlights KDE switching in 2006, LLVM removing autoconf in favor of CMake in 2016, Visual Studio adding integrated CMake project support in 2017, and Qt switching to CMake in 2019. The CMake about page claims more than two million downloads per month, and the batch input lists packages across Homebrew, Debian, Fedora, Arch, Nix, MacPorts, Windows package managers, and more.

### Modes d'utilisation

The cmake executable generates project buildsystems, builds and installs projects, runs scripts, runs command-line helper actions, and exposes help. CMake projects begin from CMakeLists.txt files; modern workflows may also use CMakePresets.json and CMakeUserPresets.json, while generated build trees contain CMakeCache.txt.

### Pourquoi les passionnés de paquets s'y intéressent

CMake is package-nerd infrastructure: it is the build-system front door for thousands of upstream projects and distro recipes. Its generator model lets package maintainers target Make, Ninja, IDE projects, and platform-native tooling from the same upstream metadata, while CTest and CPack standardize test and packaging hooks.

### Chronologie

- 2000: CMake is created for the National Library of Medicine's Insight Toolkit project.
- 2002: VTK and ParaView replace their build systems with CMake.
- 2006: KDE switches to CMake, helping drive Linux distribution availability.
- 2011: Ninja generator is added to CMake.
- 2016: LLVM switches to CMake and removes autoconf.
- 2017: Microsoft Visual Studio introduces integrated support for CMake projects.
- 2019: The Qt Group switches to CMake.
- 2020: CMake Presets are incorporated into Visual Studio and Ninja Multi-Config is added.
- 2022: CMake is publicly described as the standard build system in a C++Now talk cited by the official timeline.

### Related projects

- The official timeline ties CMake to ITK, VTK, ParaView, KDE, LLVM, Visual Studio, Qt, Ninja, CTest, CPack, and C++20 modules work. It is also the build dependency for projects such as cmark.

### Sources

- <https://cmake.org/history/>
- <https://cmake.org/about/>
- <https://cmake.org/cmake/help/latest/manual/cmake.1.html>
- <https://cmake.org/cmake/help/latest/manual/cmake-presets.7.html>


## Notes de sécurité

build system capable of executing project logic.

- **Risque Geiger:** yellow / élevé
- build system capable of executing project logic
- **règles d'approbation:** 6


## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: CMakePresets.json, CMakeUserPresets.json, <build-tree>/CMakeCache.txt
## Autres enregistrements de gestionnaires de paquets

- Debian apt - cmake - 3.31.6-2: normalized package name match | Debian stable package indexes: cmake from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | cross-platform, open-source make system | https://cmake.org/
- Debian apt - cmake-curses-gui - 3.31.6-2: normalized package name match | Debian stable package indexes: cmake-curses-gui from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | curses based user interface for CMake (ccmake) | https://cmake.org/
- Debian apt - cmake-data - 3.31.6-2: normalized package name match | Debian stable package indexes: cmake-data from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | CMake data files (modules, templates and documentation) | https://cmake.org/
- Debian apt - cmake-doc - 3.31.6-2: normalized package name match | Debian stable package indexes: cmake-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | extended documentation in various formats for CMake | https://cmake.org/
- Debian apt - cmake-qt-gui - 3.31.6-2: normalized package name match | Debian stable package indexes: cmake-qt-gui from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Qt based user interface for CMake (cmake-gui) | https://cmake.org/
- Nix - cmake: normalized package name match | nixpkgs package indexes: pkgs/by-name/cm/cmake/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - cmake - 3.28.3-1build7: normalized package name match | Ubuntu 24.04 LTS package indexes: cmake from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | cross-platform, open-source make system | https://cmake.org/
- Ubuntu apt - cmake-curses-gui - 3.28.3-1build7: normalized package name match | Ubuntu 24.04 LTS package indexes: cmake-curses-gui from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | curses based user interface for CMake (ccmake) | https://cmake.org/
- Ubuntu apt - cmake-data - 3.28.3-1build7: normalized package name match | Ubuntu 24.04 LTS package indexes: cmake-data from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | CMake data files (modules, templates and documentation) | https://cmake.org/
- Ubuntu apt - cmake-doc - 3.28.3-1build7: normalized package name match | Ubuntu 24.04 LTS package indexes: cmake-doc from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | extended documentation in various formats for CMake | https://cmake.org/
- Ubuntu apt - cmake-qt-gui - 3.28.3-1build7: normalized package name match | Ubuntu 24.04 LTS package indexes: cmake-qt-gui from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Qt based user interface for CMake (cmake-gui) | https://cmake.org/
- apk - ccmake - 4.3.4-r0: normalized package name match | Alpine Linux edge package indexes: ccmake from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Cross-platform, open-source make system (ccmake configurator) | https://cmake.org/
- apk - cmake - 4.3.4-r0: normalized package name match | Alpine Linux edge package indexes: cmake from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Cross-platform, open-source make system | https://cmake.org/
- apk - cmake-bash-completion - 4.3.4-r0: normalized package name match | Alpine Linux edge package indexes: cmake-bash-completion from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Bash completions for cmake | https://cmake.org/
- apk - cmake-doc - 4.3.4-r0: normalized package name match | Alpine Linux edge package indexes: cmake-doc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Cross-platform, open-source make system (documentation) | https://cmake.org/
- apk - cmake-emacs - 4.3.4-r0: normalized package name match | Alpine Linux edge package indexes: cmake-emacs from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Cross-platform, open-source make system (emacs mode) | https://cmake.org/


## Combined YAML source

View the package source record on GitHub. [combined/cmake.yml](https://github.com/mxcl/pkgdb/blob/main/combined/cmake.yml)


## Sources

- pkg.so package database
- Geiger risk classifier
- approval-gate seed metadata
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
- curated agent safety answer
