Skip to content

ClickHouse RPMs for EL8 (RHEL8\CentOS8 and others)

Notifications You must be signed in to change notification settings

mastertheknife/clickhouse-rpms

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 

Repository files navigation

2022 Update:

I am no longer maintaining this. The official RPMs have became good enough, and ARM64 RPMs are now available officially. There is pretty much no need for these unofficial RPMs anymore. Please use the official RPMs.

ClickHouse RPMs for RHEL8\CentOS8

Unofficial ClickHouse RPMs and SRPMs for RHEL 8 \ CentOS 8 \ Oracle Linux 8 \ Alma Linux 8 \ Rocky Linux 8 and other derivatives of RHEL 8.

Natively built for x86_64, aarch64 (ARM64) and ppc64le (PowerPC) on CentOS 8. Uses the OS libraries when possible and safe to do so. The server RPM includes a systemd service (clickhouse-server).

  • Requires the EPEL repository
  • Doesn't work with SELinux in enforcing mode (TODO)

You can find the RPMs and the SRPMs here:

Installation:

sudo wget https://repo.kfir.tech/clickhouse/el8/kfirtech-clickhouse.repo -O "/etc/yum.repos.d/kfirtech-clickhouse.repo"
dnf install clickhouse-client clickhouse-server

Alternative repositories (build repositories):

ClickHouse *-stable repository: https://download.opensuse.org/repositories/home:/mastertheknife:/clickhouse-stable/CentOS_8/

ClickHouse *-lts repository: https://download.opensuse.org/repositories/home:/mastertheknife:/clickhouse-lts/CentOS_8/

These only contain the last version and do not keep older versions. The older versions can be found in the main repository above. Also, please note that sometimes the LTS contains a newer version than the stable. For example, as of this writing, latest LTS is 21.3 and latest stable is 21.2.

Some background

I originally created these for my own use, but given the effort of creating it and maintaining it, its worth sharing :-) The RPMs are built on OpenSUSE's excellent OBS (Open Build Service). If you are interested in the OBS projects, they're here: https://build.opensuse.org/package/show/home:mastertheknife:clickhouse-stable/ClickHouse https://build.opensuse.org/package/show/home:mastertheknife:clickhouse-lts/ClickHouse

If you want to build the RPMs yourself:

This currently requires CentOS Stream 8 to build, because of the newer cmake version. Also requires dwz 0.14 or newer, because dwz 0.12 and 0.13 crash often due to the large size of debuginfo. dwz 0.14 for EL8 can be found here: https://download.opensuse.org/repositories/home:/mastertheknife/CentOS_8/

Get the SPEC file and the sources, from OBS or the SRPM, and run rpmbuild -ba ~/rpmbuild/SPECS/clickhouse.spec

Source preparation

The source .tar.xz files are created as follows:

git clone https://github.com/ClickHouse/ClickHouse.git --branch v21.2.5.5-stable --depth 1 clickhouse-21.2.5.5
cd clickhouse-21.2.5.5
git submodule update --init --recursive --depth=1
git rev-parse HEAD > src-git-head.txt
git submodule foreach --recursive git rev-parse HEAD > src-git-submodule-heads.txt
rm -rf .git
cd ..
XZ_OPT="-9 -e" tar cvJf clickhouse-21.2.5.5.tar.xz clickhouse-21.2.5.5

About

ClickHouse RPMs for EL8 (RHEL8\CentOS8 and others)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published