In this guidance we use the pre-built binary directly.
CentOS users please use the
x86_64-unknown-centos-gnu package, which also requires OpenSSL 1.0 to run:
sudo yum install openssl-libs
Download the binary file from the CKB releases page on GitHub:
you can download from command line & download from your browser directly.
.asc files are signatures. It is wise and more secure to check out for the files integrity.
After it is downloaded and unzipped, you need to copy the
ckb-cli binary file to a
PATH directory. In the unzipped folder:
sudo ln -snf "$(pwd)/ckb" /usr/local/bin/ckb sudo ln -snf "$(pwd)/ckb-cli" /usr/local/bin/ckb-cli
Then check if it works with:
ckb --version ckb-cli --version
(click here to view response)
$ ckb --version ckb-cli --version ckb 0.23.0 (rylai-v11 52aa02ff 2019-10-19) ckb-cli 0.23.0 (809fa15 2019-10-19)
If you see the response above, you have successfully installed CKB and CKB-CLI.