8fd82e88a69bab1707008d0dfc63a5e6a4a01aec
[arvados.git] / doc / _includes / _setup_redhat_repo.liquid
1 {% comment %}
2 Copyright (C) The Arvados Authors. All rights reserved.
3
4 SPDX-License-Identifier: CC-BY-SA-3.0
5
6 modules_to_enable and packages_to_install may be space-separated strings
7 {% endcomment %}
8
9 {%- if modules_to_enable != nil %}
10 {% include 'notebox_begin_warning' %}
11
12 Arvados tools require newer language runtimes than the default versions included with these distributions. These instructions will **upgrade language runtimes for the entire system**. Check that won't interfere with any existing software before you proceed.
13
14 {% include 'notebox_end' %}
15 {% endif -%}
16
17 Set up the Arvados package repository
18 {%- if packages_to_install == nil %}
19 {%- elsif packages_to_install contains " " %} and install the packages
20 {%- else %} and install @{{ packages_to_install }}@
21 {%- endif %} by running these commands:
22
23 <notextile>
24 <pre><code># <span class="userinput">tee /etc/yum.repos.d/arvados.repo &gt;/dev/null &lt;&lt;'EOF'
25 [arvados]
26 name=Arvados
27 baseurl=http://rpm.arvados.org/CentOS/$releasever/os/$basearch/
28 gpgcheck=1
29 gpgkey=http://rpm.arvados.org/CentOS/RPM-GPG-KEY-arvados
30 EOF</span>
31 {%- if modules_to_enable != nil %}
32 # <span class="userinput">dnf module enable {{ modules_to_enable }}</span>
33 {% endif -%}
34 {%- if packages_to_install != nil -%}
35 # <span class="userinput">dnf install {{ packages_to_install }}</span>
36 {% endif -%}
37 </code></pre>
38 </notextile>