Package Installation


1. Linux Archive Distribution

The archive file consists of the executable binary and the configuration file structured as follows.

  • For CN node : kcn / kcnd
  • For PN node : kpn / kpnd
- bin
  |- kcn
  |- kcnd

- conf
  |- kcnd.conf
  
File Name       |     File Description
--------------------------------------------------------
bin/kcn         |     CN executable file
bin/kcnd        |     CN start/termination script file
conf/kcnd.conf  |     CN configuration file

Do NOT alter the file structure or file name. If you change it, the node may not function correctly.


Installation

The installation is decompress of the downloaded package where you want to install the package.

$ tar zxf kcn-vX.X.X-linux-amd64.tar.gz
or
$ tar zxf kcn-baobab-vX.X.X-linux-amd64.tar.gz

it is recommended that decompress directory kcn-linux-amd64/bin path should be added to the environment variable $PATH to run the kcn and kcnd globally.


As an example,

$ export PATH=$PATH:~/downloaded/path/kcn-linux-amd64/bin
The other sections assume that the path is added to the variable.




2. RPM Distribution (RHEL/CentOS/Fedora)

Install from Klaytn Yum Repo

You can install from the Klaytn Yum repo, run:

1) CN Installation
sudo curl -o /etc/yum.repos.d/klaytn.repo https://packages.klaytn.net/config/rhel/7/prod.repo && sudo yum install kcnd
2) PN Installation

sudo curl -o /etc/yum.repos.d/klaytn.repo https://packages.klaytn.net/config/rhel/7/prod.repo && sudo yum install kpnd

Install downloaded RPM

Alternatively, you can install the downloaded RPM file with the following yum command.

1) CN Installation
$ yum install kcnd-vX.X.X.el7.x86_64.rpm
or
$ yum install kcnd-baobab-vX.X.X.el7.x86_64.rpm
2) PN Installation

$ yum install kpnd-vX.X.X.el7.x86_64.rpm
or
$ yum install kpnd-baobab-vX.X.X.el7.x86_64.rpm

Installed Location

The installed files are located as follows. (The PN node is also in the same location.)

File Name    |    Location
-------------------------------------------
kcnd.conf    |    /etc/kcnd/conf/kcnd.conf





You can check the more details information on the page below.




If you finish this step, please click the next button > on the right side of this page.