Skip to content

Commit e61be8f

Browse files
committed
Review changes
1 parent ac2ae79 commit e61be8f

File tree

2 files changed

+40
-5
lines changed

2 files changed

+40
-5
lines changed

docs/getting-started/install/_snippets/_linux_tar_install.md

Lines changed: 39 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,47 +17,82 @@ You can find the release number on this [GitHub page](https://github.com/ClickHo
1717
with postfix `-stable`.
1818
:::
1919

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+
2024
```bash
21-
# Get the latest ClickHouse version from GitHub and store it in LATEST_VERSION variable
2225
LATEST_VERSION=$(curl -s https://raw.githubusercontent.com/ClickHouse/ClickHouse/master/utils/list-versions/version_date.tsv | \
2326
grep -Eo '[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+' | sort -V -r | head -n 1)
2427
export LATEST_VERSION
28+
```
29+
30+
## Detect your system architecture {#detect-system-architecture}
2531

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
2735
case $(uname -m) in
2836
x86_64) ARCH=amd64 ;; # For Intel/AMD 64-bit processors
2937
aarch64) ARCH=arm64 ;; # For ARM 64-bit processors
3038
*) echo "Unknown architecture $(uname -m)"; exit 1 ;; # Exit if architecture isn't supported
3139
esac
40+
```
3241

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
3548
for PKG in clickhouse-common-static clickhouse-common-static-dbg clickhouse-server clickhouse-client clickhouse-keeper
3649
do
3750
curl -fO "https://packages.clickhouse.com/tgz/stable/$PKG-$LATEST_VERSION-${ARCH}.tgz" \
3851
|| curl -fO "https://packages.clickhouse.com/tgz/stable/$PKG-$LATEST_VERSION.tgz"
3952
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`
4059

60+
```bash
4161
# Extract and install clickhouse-common-static package
4262
tar -xzvf "clickhouse-common-static-$LATEST_VERSION-${ARCH}.tgz" \
4363
|| tar -xzvf "clickhouse-common-static-$LATEST_VERSION.tgz"
4464
sudo "clickhouse-common-static-$LATEST_VERSION/install/doinst.sh"
65+
```
66+
67+
68+
- `clickhouse-common-static-dbg`
4569

70+
```bash
4671
# Extract and install debug symbols package
4772
tar -xzvf "clickhouse-common-static-dbg-$LATEST_VERSION-${ARCH}.tgz" \
4873
|| tar -xzvf "clickhouse-common-static-dbg-$LATEST_VERSION.tgz"
4974
sudo "clickhouse-common-static-dbg-$LATEST_VERSION/install/doinst.sh"
75+
```
76+
77+
- `clickhouse-server`
5078

79+
```bash
5180
# Extract and install server package with configuration
5281
tar -xzvf "clickhouse-server-$LATEST_VERSION-${ARCH}.tgz" \
5382
|| tar -xzvf "clickhouse-server-$LATEST_VERSION.tgz"
5483
sudo "clickhouse-server-$LATEST_VERSION/install/doinst.sh" configure
5584
sudo /etc/init.d/clickhouse-server start # Start the server
85+
```
86+
87+
- `clickhouse-client`
5688

89+
```bash
5790
# Extract and install client package
5891
tar -xzvf "clickhouse-client-$LATEST_VERSION-${ARCH}.tgz" \
5992
|| tar -xzvf "clickhouse-client-$LATEST_VERSION.tgz"
6093
sudo "clickhouse-client-$LATEST_VERSION/install/doinst.sh"
6194
```
6295

96+
97+
6398
</VerticalStepper>

docs/getting-started/install/_snippets/_macos.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ By default, MacOS will not run applications or tools created by a developer who
2323

2424
When attempting to run any `clickhouse` command, you may see this error:
2525

26-
<Image img={dev_error} size="md" alt="MacOS developer verification error dialog" border />
26+
<Image img={dev_error} size="sm" alt="MacOS developer verification error dialog" border />
2727

2828
To get around this verification error, you need to remove the app from MacOS' quarantine bin either by finding the appropriate setting in your System Settings window, using the terminal, or by re-installing ClickHouse.
2929

0 commit comments

Comments
 (0)