From 90d7283b211c00da86fcd3f9f577292de851823b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Bernhard=20Rosenkr=C3=A4nzer?=
 <bernhard.rosenkraenzer.ext@huawei.com>
Date: Wed, 31 Mar 2021 00:14:12 +0200
Subject: [PATCH] docs: Add instructions for non-Ubuntu distributions
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Add instructions for installing repo on various distributions through
our COPR and OBS repositories

Signed-off-by: Bernhard Rosenkränzer <bernhard.rosenkraenzer.ext@huawei.com>
---
 docs/repo-workspace.rst | 49 +++++++++++++++++++++++++++++++++++++++--
 1 file changed, 47 insertions(+), 2 deletions(-)

diff --git a/docs/repo-workspace.rst b/docs/repo-workspace.rst
index d16e9deb..18cfd3b7 100644
--- a/docs/repo-workspace.rst
+++ b/docs/repo-workspace.rst
@@ -20,17 +20,62 @@ The Repo Tool
 In order to setup a sources workspace of OpenHarmony, the ``git-repo`` tool is
 required on the host.
 
-For ``Ubuntu 20.04``, OpenHarmony provides a patched version of the repo tool
-published as a `launchpad PPA <https://launchpad.net/~openharmony/+archive/ubuntu/tools>`_.
+OpenHarmony provides a patched version of the repo tool for ``Ubuntu 20.04``
+at `launchpad PPA <https://launchpad.net/~openharmony/+archive/ubuntu/tools>`_,
+for ``rpm``/``dnf`` based distributions at
+`copr <https://copr.fedorainfracloud.org/coprs/openharmony/tools/>`_, and for
+openSUSE, Arch and a few other distributions at `OBS <https://build.opensuse.org/project/show/home:openharmony:tools>`_.
+
 The patches are also available in the tool's `source repository <https://git.ostc-eu.org/OSTC/packaging/git-repo>`_.
 One can install this tool by following the next steps:
 
+On Ubuntu:
+----------
+
 .. code-block:: console
 
    $ sudo add-apt-repository ppa:openharmony/tools
    $ sudo apt-get update
    $ sudo apt-get install git-repo
 
+On distributions that use ``dnf``:
+----------------------------------
+
+.. code-block:: console
+
+   $ sudo dnf copr enable openharmony/tools
+   $ sudo dnf --refresh install repo
+
+On openSUSE or SUSE Enterprise Linux:
+-------------------------------------
+
+.. code-block:: console
+
+   $ sudo zypper addrepo http://download.opensuse.org/repositories/home:/openharmony:/tools/openSUSE_Tumbleweed/home:openharmony:tools.repo
+   $ sudo zypper in repo
+
+In the `zypper addrepo` line, replace ``openSUSE_Tumbleweed`` with the distribution you're using - a list of distributions
+for which the package is available `here <http://download.opensuse.org/repositories/home:/openharmony:/tools/>`_.
+
+On Arch Linux:
+--------------
+Add our OBS repository to ``/etc/pacman.conf``:
+
+.. code-block:: console
+
+   [openharmony-tools]
+   Server = http://download.opensuse.org/repositories/home:/openharmony:/tools/Arch/$arch/
+
+Optionally, install the repository's `signing key <https://download.opensuse.org/repositories/home:/openharmony:/tools/Arch/x86_64/home_openharmony_tools_Arch.key>`_.
+
+Then install the ``repo`` package with pacman.
+
+On OpenMandriva:
+----------------
+OpenMandriva has already added OpenHarmony's version of ``repo`` to its official
+repositories. If you're on OpenMandriva, simply ``dnf install repo``.
+
+
 The Manifests
 *************
 
-- 
GitLab