@@ -17,47 +17,82 @@ You can find the release number on this [GitHub page](https://github.com/ClickHo
17
17
with postfix ` -stable ` .
18
18
:::
19
19
20
+ ## Get the latest ClickHouse version {#get-latest-version}
21
+
22
+ Get the latest ClickHouse version from GitHub and store it in ` LATEST_VERSION ` variable.
23
+
20
24
``` bash
21
- # Get the latest ClickHouse version from GitHub and store it in LATEST_VERSION variable
22
25
LATEST_VERSION=$( curl -s https://raw.githubusercontent.com/ClickHouse/ClickHouse/master/utils/list-versions/version_date.tsv | \
23
26
grep -Eo ' [0-9]+\.[0-9]+\.[0-9]+\.[0-9]+' | sort -V -r | head -n 1)
24
27
export LATEST_VERSION
28
+ ```
29
+
30
+ ## Detect your system architecture {#detect-system-architecture}
25
31
26
- # Detect the system architecture and set the ARCH variable accordingly
32
+ Detect the system architecture and set the ARCH variable accordingly:
33
+
34
+ ``` bash
27
35
case $( uname -m) in
28
36
x86_64) ARCH=amd64 ;; # For Intel/AMD 64-bit processors
29
37
aarch64) ARCH=arm64 ;; # For ARM 64-bit processors
30
38
* ) echo " Unknown architecture $( uname -m) " ; exit 1 ;; # Exit if architecture isn't supported
31
39
esac
40
+ ```
32
41
33
- # Download tarballs for each ClickHouse component
34
- # The loop tries architecture-specific packages first, then falls back to generic ones
42
+ ## Download tarballs for each ClickHouse component {#download-tarballs}
43
+
44
+ Download tarballs for each ClickHouse component. The loop tries architecture-specific
45
+ packages first, then falls back to generic ones.
46
+
47
+ ``` bash
35
48
for PKG in clickhouse-common-static clickhouse-common-static-dbg clickhouse-server clickhouse-client clickhouse-keeper
36
49
do
37
50
curl -fO " https://packages.clickhouse.com/tgz/stable/$PKG -$LATEST_VERSION -${ARCH} .tgz" \
38
51
|| curl -fO " https://packages.clickhouse.com/tgz/stable/$PKG -$LATEST_VERSION .tgz"
39
52
done
53
+ ```
54
+
55
+ ## Extract and install packages
56
+
57
+ Run the commands below to extract and install the following packages:
58
+ - ` clickhouse-common-static `
40
59
60
+ ``` bash
41
61
# Extract and install clickhouse-common-static package
42
62
tar -xzvf " clickhouse-common-static-$LATEST_VERSION -${ARCH} .tgz" \
43
63
|| tar -xzvf " clickhouse-common-static-$LATEST_VERSION .tgz"
44
64
sudo " clickhouse-common-static-$LATEST_VERSION /install/doinst.sh"
65
+ ```
66
+
67
+
68
+ - ` clickhouse-common-static-dbg `
45
69
70
+ ``` bash
46
71
# Extract and install debug symbols package
47
72
tar -xzvf " clickhouse-common-static-dbg-$LATEST_VERSION -${ARCH} .tgz" \
48
73
|| tar -xzvf " clickhouse-common-static-dbg-$LATEST_VERSION .tgz"
49
74
sudo " clickhouse-common-static-dbg-$LATEST_VERSION /install/doinst.sh"
75
+ ```
76
+
77
+ - ` clickhouse-server `
50
78
79
+ ``` bash
51
80
# Extract and install server package with configuration
52
81
tar -xzvf " clickhouse-server-$LATEST_VERSION -${ARCH} .tgz" \
53
82
|| tar -xzvf " clickhouse-server-$LATEST_VERSION .tgz"
54
83
sudo " clickhouse-server-$LATEST_VERSION /install/doinst.sh" configure
55
84
sudo /etc/init.d/clickhouse-server start # Start the server
85
+ ```
86
+
87
+ - ` clickhouse-client `
56
88
89
+ ``` bash
57
90
# Extract and install client package
58
91
tar -xzvf " clickhouse-client-$LATEST_VERSION -${ARCH} .tgz" \
59
92
|| tar -xzvf " clickhouse-client-$LATEST_VERSION .tgz"
60
93
sudo " clickhouse-client-$LATEST_VERSION /install/doinst.sh"
61
94
```
62
95
96
+
97
+
63
98
</VerticalStepper >
0 commit comments