Update install.md

https://packages.clickhouse.com/tgz/stable/ is multi-paged now and  sorted by date asc so we can't get very last version
This commit is contained in:
Nikolay Yankin 2024-03-11 14:07:19 +03:00 committed by GitHub
parent a0727ba0af
commit e562d97ff5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -262,7 +262,7 @@ The required version can be downloaded with `curl` or `wget` from repository htt
After that downloaded archives should be unpacked and installed with installation scripts. Example for the latest stable version:
``` bash
LATEST_VERSION=$(curl -s https://packages.clickhouse.com/tgz/stable/ | \
LATEST_VERSION=$(curl -s -L https://api.github.com/repos/ClickHouse/ClickHouse/tags | \
grep -Eo '[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+' | sort -V -r | head -n 1)
export LATEST_VERSION