# repo_config_data.py # text snippets per platform that help users to # - register linux repositories # - install linux packages # - and optionally install a key so that automatic updates come in. # # The text blocks are plain text shell commands. Variable substitution is available. # Variables are written in {Variable} notation, the available variables are: # - {DownloadUrl} # your download url path up to the platform specific folders (HTTP) # - {DownloadUrlCred} # as DownloadUrl including user and password credendtials, if any. # - {DownloadUrlHttps} # as DownloadUrl, but with enforced https:// used for gpg keys # - {DownloadUrlHttpsCred} # as DownloadUrlHttps including user and password credendtials, if any. # - {Platform} # Build target name, as seen in the Build Service. # - {BasePlatform} # Build target grouping. Platform without versions and such. # - {Package} # Name of the Linux package (testpilot-cloud) # - {Version} # 1.7.2~Beta1 # - {VersionRel} # 1.7.2~Beta1-2.1 # # We don't have the manual download in the entry_template. It cannot work for the clients. #

Download packages manually (without adding a repo)

[Generic] download_url: {DownloadUrlCred}/{Platform}/ entry_template:

{Platform} {Package}-{VersionRel}

{key_help}

{key_sh}

{repo_help}

{repo_sh}

{repo_help2}

{repo_sh2}


repo_help: Run the following shell commands to add the repository and install from there. key_help: Run the following shell commands to trust the repository. key_help2: key_sh: repo_sh: repo_sh2: [APT] # FIXME: for Ubuntu we should use: # source /etc/os-release # echo "deb {DownloadUrlCred}/Ubuntu_$VERSION_ID/ /" > /etc/apt/sources.list.d/{Package}.list # echo "deb http://archive.ubuntu.com/ubuntu/ $UBUNTU_CODENAME main" >> /etc/apt/sources.list.d/{Package}.list base: Generic key_help: Add (at least temporarily) a download repository. This requires registering trusted key. (More information). Run the following shell commands to trust the repository: key_sh: wget -nv {DownloadUrlHttpsCred}/{Platform}/Release.key -O - | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/{Package}.gpg > /dev/null repo_sh: sudo apt update sudo apt install apt-transport-https echo 'deb {DownloadUrlCred}/{Platform}/ /' | sudo tee -a /etc/apt/sources.list.d/{Package}.list sudo apt update sudo apt install {Package} [YUM] base: Generic key_sh: sudo rpm --import {DownloadUrlHttpsCred}/{Platform}/repodata/repomd.xml.key repo_sh: sudo wget {DownloadUrlCred}/{Platform}/{Package}.repo -O /etc/yum.repos.d/{Package}.repo sudo yum clean all sudo yum install {Package} sudo yum upgrade {Package} repo_help: Run the following shell commands to add the repository and install from there. You either need 'yum upgrade' or 'yum install' depending on whether you already have an older version installed or not. [DNF] base: Generic key_sh: sudo rpm --import {DownloadUrlHttpsCred}/{Platform}/repodata/repomd.xml.key repo_sh: sudo dnf config-manager addrepo --from-repofile={DownloadUrlCred}/{Platform}/{Package}.repo sudo dnf clean all sudo dnf install {Package} sudo dnf upgrade {Package} repo_sh2: sudo dnf config-manager --add-repo {DownloadUrlCred}/{Platform}/{Package}.repo sudo dnf clean all sudo dnf install {Package} sudo dnf upgrade {Package} repo_help: Run the following shell commands to add the repository and install from there. You either need 'dnf upgrade' or 'dnf install' depending on whether you already have an older version installed or not. repo_help2: In case you are running dnf4 as used with Fedora prior to version 41 run these commands. [ZYP] base: Generic key_sh: sudo rpm --import {DownloadUrlHttpsCred}/{Platform}/repodata/repomd.xml.key repo_sh: sudo zypper addrepo {DownloadUrlCred}/{Platform}/{Package}.repo sudo zypper refresh sudo zypper install {Package} # Linux_Mint is called only Linux [Linux] base: APT [Ubuntu] base: APT [xUbuntu] base: APT [Debian] base: APT [Univention] base: APT [CentOS_7] base: YUM key_help: Minimum Requirement: CentOS 7.8 or later.

Run the following shell command to trust the repository. [CentOS] base: YUM [CentOS_6_PHP54] base: CentOS repo_sh: sudo yum install -y --nogpgcheck centos-release-SCL sudo wget {DownloadUrlCred}/{Platform}/{Package}.repo -O /etc/yum.repos.d/{Package}.repo sudo yum clean all sudo yum install {Package} sudo yum upgrade {Package} [CentOS_6_PHP55] base: CentOS repo_sh: sudo yum install -y https://www.softwarecollections.org/en/scls/rhscl/php55/epel-6-x86_64/download/rhscl-php55-epel-6-x86_64.noarch.rpm sudo yum install -y https://www.softwarecollections.org/en/scls/rhscl/httpd24/epel-6-x86_64/download/rhscl-httpd24-epel-6-x86_64.noarch.rpm sudo wget {DownloadUrlCred}/{Platform}/{Package}.repo -O /etc/yum.repos.d/{Package}.repo sudo yum clean all sudo yum install {Package} sudo yum upgrade {Package} [CentOS_6_PHP56] base: CentOS repo_sh: sudo yum install -y https://www.softwarecollections.org/en/scls/rhscl/rh-php56/epel-6-x86_64/download/rhscl-rh-php56-epel-6-x86_64.noarch.rpm sudo yum install -y https://www.softwarecollections.org/en/scls/rhscl/httpd24/epel-6-x86_64/download/rhscl-httpd24-epel-6-x86_64.noarch.rpm sudo wget {DownloadUrlCred}/{Platform}/{Package}.repo -O /etc/yum.repos.d/{Package}.repo sudo yum clean all sudo yum install {Package} sudo yum upgrade {Package} [Fedora] base: DNF [RHEL_6] base: YUM [RHEL] base: DNF [openSUSE] base: ZYP [SLE] base: ZYP