# Preventing auto-update

**URL:** https://discourse.cmake.org/t/preventing-auto-update/12958
**Category:** Usage
**Tags:** os:windows
**Created:** [November 12, 2024, 6:21pm UTC](https://discourse.cmake.org/t/preventing-auto-update/12958 "2024-11-12T18:21:07Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Rickular](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/r/a183cd/32.png) [@Rickular](https://discourse.cmake.org/u/Rickular)
#### Post date: [November 12, 2024, 6:21pm UTC](https://discourse.cmake.org/t/preventing-auto-update/12958/1 "2024-11-12T18:21:07Z")

</div>

Is there a way to prevent CMake from automatically updating to the newest version without asking?

I install CMake on Windows using chocolatey, but even if I ‘choco pin’ it to a known working version, it still automatically updates to newer versions. This wasn’t really a problem until recently, but the update to 3.30.0 broke my builds and wasn’t fixed until 3.30.2 was released, and now the update to 3.31.0 has broken my builds again. I’d like to install CMake 3.30.5 and have it stick until I decide to update it manually.

---

<div class="post-metadata">

### Author: ![ClausKlein](https://discourse.cmake.org/user_avatar/discourse.cmake.org/clausklein/32/352_2.png) [@ClausKlein](https://discourse.cmake.org/u/ClausKlein)
#### Post date: [November 13, 2024, 7:49pm UTC](https://discourse.cmake.org/t/preventing-auto-update/12958/2 "2024-11-13T19:49:03Z")

</div>

> **[Chocolatey Software Docs | Prevent Automated Outdated Packages Check](https://docs.chocolatey.org/en-us/chocolatey-gui/setup/configuration/features/prevent-automated-outdated-packages-check/)**
>
> Allows control over whether Chocolatey GUI will automatically check for outdated packages installed locally

---

<div class="post-metadata">

### Author: ![Rickular](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/r/a183cd/32.png) [@Rickular](https://discourse.cmake.org/u/Rickular)
#### Post date: [November 14, 2024, 12:07pm UTC](https://discourse.cmake.org/t/preventing-auto-update/12958/3 "2024-11-14T12:07:04Z")

</div>

Thanks, but the problem has nothing to do with chocolatey. For example, yesterday I installed CMake 3.30.5 from the msi package, and this morning that has been automatically replaced by 3.31.0. As far as I can tell, it’s CMake that’s updating itself, not any package manager.

---

<div class="post-metadata">

### Author: ![craig.scott](https://discourse.cmake.org/user_avatar/discourse.cmake.org/craig.scott/32/20_2.png) [@craig.scott](https://discourse.cmake.org/u/craig.scott)
#### Post date: [November 14, 2024, 8:08pm UTC](https://discourse.cmake.org/t/preventing-auto-update/12958/4 "2024-11-14T20:08:47Z")

</div>

CMake does not auto-update itself. If you’re seeing that happening, there’s something else on your system doing that, not CMake itself.

---

<div class="post-metadata">

### Author: ![Rickular](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/r/a183cd/32.png) [@Rickular](https://discourse.cmake.org/u/Rickular)
#### Post date: [November 14, 2024, 8:51pm UTC](https://discourse.cmake.org/t/preventing-auto-update/12958/5 "2024-11-14T20:51:02Z")

</div>

OK, good to know. Earlier today as an experiment I “installed” CMake 3.30.5 from the zip archive instead of the Windows installer, to see if that would prevent the automatic updates. So far, so good.

---

<div class="post-metadata">

### Author: ![ClausKlein](https://discourse.cmake.org/user_avatar/discourse.cmake.org/clausklein/32/352_2.png) [@ClausKlein](https://discourse.cmake.org/u/ClausKlein)
#### Post date: [November 14, 2024, 8:52pm UTC](https://discourse.cmake.org/t/preventing-auto-update/12958/6 "2024-11-14T20:52:06Z")

</div>

**Hint** : Check your path:  
_where cmake_
