Installation

The rp-cli binary is available as rpm or debian package in the redpesk “tools” repository. Therefore it can be easily installed. Nevertheless you need to be using a supported Linux distribution. In general, the latest version of Ubuntu, OpenSUSE, and Fedora works. Following is a specific list of supported distributions:

It is recommended to use the latest distribution version as we make sure that everything works well for them.

Instructions according to distribution

Ubuntu - Debian - Linux Mint

# Declare the distribution used (follow the format of the following example)
# For Linux Mint, it takes the same distro name as Ubuntu
MY_DISTRO="Debian_12"         # Other possibility: "Debian_11"
MY_DISTRO="xUbuntu_24.04"     # Other possibility: "xUbuntu_22.04"

# Declare the repo file
REPO_FILE_PATH="/etc/apt/sources.list.d/redpesk-ci.list"

# Declare the GPG key file
REPO_KEY_PATH="/usr/share/keyrings/redpesk-tool.gpg"

# Declare the repo URL
REPO_URL="https://download.redpesk.bzh/redpesk-ci/armel-update/tools/${MY_DISTRO}"

# Download the GPG key to the right place
curl -fsSL "$REPO_URL/Release.key" | gpg --dearmor | sudo tee "$REPO_KEY_PATH"

# Create the repository file
echo "deb [signed-by=$REPO_KEY_PATH] $REPO_URL ./" | sudo tee "$REPO_FILE_PATH"

# Update
sudo apt update

# Install redpesk-cli
sudo apt-get install redpesk-cli

Fedora - AlmaLinux

# Declare the distribution used (follow the format of the following example)
MY_DISTRO="Fedora_43"       # Other possibility: "Fedora_42"
MY_DISTRO="AlmaLinux_10"    # Other possibility: "AlmaLinux_9"

# Declare the repo file
REPO_FILE_PATH="/etc/yum.repos.d/redpesk-ci.repo"

# Declare the repo URL
REPO_URL="https://download.redpesk.bzh/redpesk-ci/armel-update/tools/${MY_DISTRO}"

# Create the repository file
sudo tee "$REPO_FILE_PATH" <<EOF
[redpesk-tools]
name=redpesk-tools
baseurl=${REPO_URL}
enabled=1
gpgcheck=1
gpgkey=${REPO_URL}/repodata/repomd.xml.key

EOF

# Install redpesk-cli
sudo dnf install -y --refresh redpesk-cli

OpenSUSE

# Declare the distribution used (follow the format of the following example)
MY_DISTRO="openSUSE_Leap_16.0"       # Other possibility: "openSUSE_Leap_15.6"

# Declare the repo URL
REPO_URL="https://download.redpesk.bzh/redpesk-ci/armel-update/tools/${MY_DISTRO}"

# Add the repository
sudo zypper ar -f "$REPO_URL" "redpesk-tools"
sudo zypper --non-interactive --gpg-auto-import-keys ref
sudo zypper --non-interactive dup --from "redpesk-tools"

# Install redpesk-cli
sudo zypper install -y redpesk-cli