Install longhornctl

Use the Prebuilt Binary

  1. Download the binary:

    1. # Choose your architecture (amd64 or arm64).
    2. ARCH="amd64"
    3. # Download the release binary.
    4. curl -LO "https://github.com/longhorn/cli/releases/download/1.7.1/longhornctl-linux-${ARCH}"
  2. Validate the binary:

    1. # Download the checksum for your architecture.
    2. curl -LO "https://github.com/longhorn/cli/releases/download/1.7.1/longhornctl-linux-${ARCH}.sha256"
    3. # Verify the downloaded binary matches the checksum.
    4. echo "$(cat longhornctl-linux-${ARCH}.sha256 | awk '{print $1}') longhornctl-linux-${ARCH}" | sha256sum --check
  3. Install the binary:

    1. sudo install longhornctl-linux-${ARCH} /usr/local/bin/longhornctl
  4. Verify installation:

    1. longhornctl version

Build From Source

See this document in the GitHub repository.


© 2019-2024 Longhorn Authors | Documentation Distributed under CC-BY-4.0

© 2024 The Linux Foundation. All rights reserved. The Linux Foundation has registered trademarks and uses trademarks. For a list of trademarks of The Linux Foundation, please see our Trademark Usage page.

Install longhornctl - 图1 Install longhornctl - 图2