21572: Add package instructions to repository includes
[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 packages_to_install may be a space-separated string
7 {% endcomment %}
8
9 Set up the Arvados package repository
10 {%- if packages_to_install == nil %}
11 {%- elsif packages_to_install contains " " %} and install the packages
12 {%- else %} and install @{{ packages_to_install }}@
13 {%- endif %} by running these commands:
14
15 <notextile>
16 <pre><code># <span class="userinput">tee /etc/yum.repos.d/arvados.repo &gt;/dev/null &lt;&lt;'EOF'
17 [arvados]
18 name=Arvados
19 baseurl=http://rpm.arvados.org/CentOS/$releasever/os/$basearch/
20 gpgcheck=1
21 gpgkey=http://rpm.arvados.org/CentOS/RPM-GPG-KEY-arvados
22 EOF</span>
23 {%- if packages_to_install != nil %}
24 # <span class="userinput">dnf install {{ packages_to_install }}</span>
25 {% endif -%}
26 </code></pre>
27 </notextile>