Updated on 2022-02-21 GMT+08:00

Installing edgectl

Downloading edgectl

Check whether the edgectl package exists in the /opt/edge-installer directory. If the package exists, you do not need to download it again. If the package does not exist, log in to the IEF console and download the tool of the corresponding version, for example, edgectl_x.x.x_x_x86_64.tar.gz, from Edge O&M Tool on the right of the Dashboard page. edgectl in the downloaded package is the edge O&M tool.

edgectl supports the Linux operating systems that use the x86_64, Arm64, or Arm32 hardware architecture. It is installation-free. You only need to download it and place it in any directory of the operating system.

Configuring Environment Variables

If edgectl already exists in the /opt/edge-installer directory, run the following command to grant the execute permission on edgectl:

export PATH=/opt/edge-installer:$PATH

chmod +x /opt/edge-installer/edgectl

If the edgectl package is manually downloaded, perform the following steps to decompress the package and grant the execute permission on edgectl:

  1. Decompress the edgectl package.

    sudo mkdir -p DIR_TO_IEF

    sudo tar -zxvf edgectl_x.x..x_x86_64.tar.gz -C DIR_TO_IEF

    In the preceding command, DIR_TO_IEF indicates the directory where the edgectl package is decompressed, and edgectl_x.x..x_x86_64.tar.gz indicates the name of the edgectl package. Replace them with the actual values.

  2. Set the path of edgectl as an environment variable and grant the execute permission on the path.

    export PATH= DIR_TO_IEF:$PATH

    chmod +x DIR_TO_IEF/edgectl