# cmake tar.gz downloads aren't valid

**URL:** <https://discourse.cmake.org/t/cmake-tar-gz-downloads-arent-valid/4516>\
**Category:** Site Feedback\
**Tags:** os:linux\
**Created:** [November 19, 2021, 10:43pm UTC](https://discourse.cmake.org/t/cmake-tar-gz-downloads-arent-valid/4516 "2021-11-19T22:43:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Adobe-Android](https://discourse.cmake.org/user_avatar/discourse.cmake.org/adobe-android/32/1974_2.png) [@Adobe-Android](https://discourse.cmake.org/u/Adobe-Android)\
**Post date:** [November 19, 2021, 10:43pm UTC](https://discourse.cmake.org/t/cmake-tar-gz-downloads-arent-valid/4516/1 "2021-11-19T22:43:13Z")

</div>

Tar is unable to extract the cmake-_.\*\*._.tar.gz file. Whether you specify with tar xzf or just tar xf doesn’t make a difference. Tested with 3.22 and 3.21 downloads

 ![image](https://discourse.cmake.org/uploads/default/original/2X/f/f08958d091baa6e405d09fdfaae65f665940dd34.png)

---

<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 20, 2021, 9:26pm UTC](https://discourse.cmake.org/t/cmake-tar-gz-downloads-arent-valid/4516/2 "2021-11-20T21:26:36Z")

</div>

The URL you are giving to curl is returning a page that redirects you. If you look at the contents of the file you actually downloaded, it will be a HTML document which says as much. Add the `-L` option to your curl command to have it follow redirects.

---

<div class="post-metadata">

**Author:** ![Adobe-Android](https://discourse.cmake.org/user_avatar/discourse.cmake.org/adobe-android/32/1974_2.png) [@Adobe-Android](https://discourse.cmake.org/u/Adobe-Android)\
**Post date:** [November 21, 2021, 6:35pm UTC](https://discourse.cmake.org/t/cmake-tar-gz-downloads-arent-valid/4516/3 "2021-11-21T18:35:05Z")

</div>

Thanks! I never would have guessed there would be a redirect since it appears to be a direct link.
