From cf9a1e7bec48e5f2f8a1fdfdf2737a86bc7fd8ba Mon Sep 17 00:00:00 2001 From: Evgenii Alekseev Date: Thu, 21 Dec 2023 02:14:27 +0200 Subject: [PATCH] docs: add reference how to copy package --- docs/faq.rst | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/docs/faq.rst b/docs/faq.rst index 0e68fe58..b6ef89d5 100644 --- a/docs/faq.rst +++ b/docs/faq.rst @@ -139,6 +139,18 @@ TL;DR Before using this command you will need to create local directory, put ``PKGBUILD`` there and generate ``.SRCINFO`` by using ``makepkg --printsrcinfo > .SRCINFO`` command. These packages will be stored locally and *will be ignored* during automatic update; in order to update the package you will need to run ``package-add`` command again. +How to copy package from another repository +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +As simple as add package from archive. Considering case when you would like to copy package ``package`` with version ``ver-rel`` from repository ``source-repository`` to ``target-respository`` (same architecture), the command will be following: + +.. code-block:: shell + + sudo -u ahriman ahriman -r target-repository package-add /var/lib/ahriman/repository/source-repository/x86_64/package-ver-rel-x86_64.pkg.tar.zst + +In addition, you can remove source package as usual later. + +This feature in particular useful if for managing multiple repositories like ``[testing]`` and ``[extra]``. How to fetch PKGBUILDs from remote repository ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^