Skip to content

Add Linux install support#13

Merged
sdairs merged 2 commits into
mainfrom
issue-12-linux-install-support
Feb 16, 2026
Merged

Add Linux install support#13
sdairs merged 2 commits into
mainfrom
issue-12-linux-install-support

Conversation

@sdairs
Copy link
Copy Markdown
Collaborator

@sdairs sdairs commented Feb 16, 2026

Summary

  • Linux ClickHouse releases are distributed as .tgz tarballs (clickhouse-common-static-{version}-{arch}.tgz), not bare binaries like macOS
  • Updated build_download_url() to produce platform-appropriate URLs (Linux uses amd64/arm64 naming)
  • Added tarball extraction flow in install_version(): download .tgz, extract via tar xzf, move binary to final location, clean up
  • macOS install flow is unchanged

Closes #12

Test plan

  • cargo build passes
  • cargo test passes (5/5 tests, including 2 new platform-specific tests)
  • cargo clippy — no new warnings
  • Manual test on Linux: cargo run -- install stable downloads .tgz, extracts, and installs correctly
  • Manual test on macOS: cargo run -- install stable still works as before

🤖 Generated with Claude Code

sdairs and others added 2 commits February 16, 2026 16:24
On Linux, ClickHouse publishes .tgz tarballs instead of bare binaries.
This updates the install flow to detect the platform and handle both:
- macOS: direct binary download (unchanged)
- Linux: download .tgz, extract via tar, move binary to final location

Closes #12

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@sdairs sdairs merged commit 7be073d into main Feb 16, 2026
@sdairs sdairs deleted the issue-12-linux-install-support branch May 18, 2026 16:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support installing ClickHouse locally on linux

1 participant