官网并没有提供centos的repo源,所以要自己想办法,好在[Altinity]做了这个事儿,而且是实时更新的,所以自己可以做个mirror这个源,作为本地源。
1:安装所需工具
yum install yum-utils createrepo
2:创建同步目录
mkdir -p /path/html/ming.http/repository
3:同步altinity的rpm包
reposync --repoid=Altinity_clickhouse --download_path=/path/html/ming.http/repository
4:生成repodata
createrepo /path/html/ming.http/repository/Altinity_clickhouse/
5:配置repo
[Altinity_clickhouse]
name=Altinity_clickhouse
baseurl=http://reposerver/ming.http/repository/Altinity_clickhouse/
gpgcheck=0
6: 测试
yum list clickhouse*
Available Packages
clickhouse-client.x86_64 18.12.17-1.el7 Altinity_clickhouse
clickhouse-common-static.x86_64 18.12.17-1.el7 Altinity_clickhouse
clickhouse-compressor.x86_64 1.1.54336-3.el7 Altinity_clickhouse
clickhouse-debuginfo.x86_64 18.12.17-1.el7 Altinity_clickhouse
clickhouse-odbc.x86_64 20180903-1 Altinity_clickhouse
clickhouse-server.x86_64 18.12.17-1.el7 Altinity_clickhouse
clickhouse-server-common.x86_64 18.12.17-1.el7 Altinity_clickhouse
clickhouse-test.x86_64 18.12.17-1.el7 Altinity_clickhouse
网友评论