Installation

The rp-cli binary is available as rpm or debian package. Therefore it can be easily installed. You need to use a supported Linux distribution:

Please install rp-cli using the instructions here below.

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

Optional local-builder installation

Once rp-cli installed you will be able to work with the redpesk factory (after following the configuration instructions here below). But if you want to work locally on your computer, you still need to install the local-builder. The local-builder installation instructions are available here.

Configuration

Once rp-cli has been installed, some manipulations are requisite to configure this tool. The configuration needed to get started is explained in redpesk infrastructure access, you will have a command to execute and some questions to answer as detailed.

N.B.: the example here below show the full configuration, including the local builder (part 2 of the example). If you want to do so, first install the local-builder following this page

N.B.: As it is “asciinema”, you can directly copy the command line from the player!

Configuration check

In order to verify that the whole configuration went well, run the rp-cli local check-setup. You should have an [OK] return to every line.

> rp-cli local check-setup

-- Local check requested by user --

Check factory connection...         [OK]
Check local-builder connection...   [OK]
Check local-builder mount-points... [OK]
Check QEMU set-up...                [OK]