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

30 lines
1.3 KiB
HTML

{% assign apt-add_domain = include.domain | default: site.apt.domain %}
{% if include.distribution != 'focal' %}
<blockquote>
<h4>If you are on Ubuntu 20.04 (focal) do this</h4>
{% highlight bash %}
wget {{ site.ubuntu20_libicu60.url }}/{{ site.ubuntu20_libicu60.pkg }}
sudo dpkg -i ./{{ site.ubuntu20_libicu60.pkg }}
sudo apt-add-repository -y 'deb [arch=amd64] https://{{ apt-add_domain }}/{{ include.repo }} bionic {{ include.components }}'{% endhighlight %}
</blockquote>
{% endif %}
{% if include.distribution %}
{% highlight bash %}
sudo apt-add-repository -y 'deb [arch=amd64] https://{{ apt-add_domain }}/{{ include.repo }} {{ include.distribution }} {{ include.components }}'{% if include.update == true %}
sudo apt-get update{% endif %}
{% endhighlight %}
{% else %}
<h4>For bash like shells.</h4>
{% highlight bash %}
sudo apt-add-repository -y "deb [arch=amd64] https://{{ apt-add_domain }}/{{ include.repo }} `lsb_release -cs` {{ include.components }}"{% if include.update == true %}
sudo apt-get update{% endif %}
{% endhighlight %}
<h4>If you are using fish</h4>
{% highlight bash %}
sudo apt-add-repository -y "deb [arch=amd64] https://{{ apt-add_domain }}/{{ include.repo }} "(lsb_release -cs)" {{ include.components }}"{% if include.update == true %}
sudo apt-get update{% endif %}
{% endhighlight %}
{% endif %}