Skip to content

Instantly share code, notes, and snippets.

@emacsist
Created June 22, 2018 03:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save emacsist/ebb98839c814cdb2f16e20efcef9474e to your computer and use it in GitHub Desktop.
Save emacsist/ebb98839c814cdb2f16e20efcef9474e to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
grep -q sse4_2 /proc/cpuinfo && echo "SSE 4.2 supported" || echo "SSE 4.2 not supported"
grep -q sse4_2 /proc/cpuinfo || exit 1
sudo echo "deb http://repo.yandex.ru/clickhouse/deb/stable/ main/" > /etc/apt/sources.list.d/clickhouse.list
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv E0C56BD4 -y
sudo apt-get update -y
sudo apt-get install clickhouse-client clickhouse-server -y
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment