1
0
Fork 0
mirror of https://github.com/eosswedenorg/apt synced 2026-06-16 04:34:56 +02:00
apt/_includes/setup-instructions.html

44 lines
1.4 KiB
HTML

{% assign setup-instructions_repo = include.repo | default: site.apt.repo %}
{% assign setup-instructions_dist = include.distribution | default: site.apt.distribution %}
{% assign setup-instructions_domain = include.domain | default: site.apt.domain %}
{% if include.collapse %}
<div x-data="collapse">
<h2>Setup - <a href="#" x-bind="trigger"></a></h2>
<div x-bind="target" x-transition.opacity>
{% endif %}
<p>First you need to make sure some packages are installed and that our <code>gpg</code> key is added to <code>apt</code>:</p>
{% highlight bash %}
sudo apt-get install software-properties-common
curl https://{{ setup-instructions_domain }}/key 2> /dev/null | sudo apt-key add -
{% endhighlight %}
<p>Then you can add one or more of your repositories:</p>
{% include apt-add.html
repo=setup-instructions_repo
distribution=setup-instructions_dist
domain=setup-instructions_domain
components="stable"
update=true %}
<p>The url is structures as follows:</p>
{% highlight html %}
https://{{ setup-instructions_domain }}/<repository> <distribution> <component> [ <component1> ] [ <componentN> ]
{% endhighlight %}
<p>
one <code>repository</code>, <code>distribution</code> and one or more <code>components</code> needs to be specified.
These are explained in detail <a href="{{ "/help" | absolute_url }}">here</a>
</p>
{% if include.collapse %}
</div>
</div>
{% endif %}