Installing eksctl on RHEL (Red Hat Enterprise Linux)

Here’s how to install the eksctl tool on RHEL for managing Amazon EKS clusters:

Method 1: Using the official installation script (recommended)
# Download and install the latest eksctl release
curl --silent --location "https://github.com/weaveworks/eksctl/releases/latest/download/eksctl_$(uname -s)_amd64.tar.gz" | tar xz -C /tmp

# Move eksctl binary to /usr/local/bin
sudo mv /tmp/eksctl /usr/local/bin

# Verify installation
eksctl version

Method 2: Using RPM package
# Import the weaveworks GPG key
sudo rpm --import https://packages.weave.works/public.key

# Add the weaveworks repo
cat <<EOF | sudo tee /etc/yum.repos.d/weaveworks.repo
[weaveworks]
name=Weaveworks
baseurl=https://rpm.releases.weave.works/releases/$(rpm -E %rhel)/x86_64
enabled=1
gpgcheck=1
gpgkey=https://packages.weave.works/public.key
EOF

# Install eksctl
sudo yum install -y eksctl

# Verify installation
eksctl version

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top