| 1 |
.. _kiwi-installation: |
| 2 |
|
| 3 |
Installation |
| 4 |
============ |
| 5 |
|
| 6 |
.. note:: |
| 7 |
|
| 8 |
This document describes how to install {kiwi}. |
| 9 |
|
| 10 |
Apart from the preferred method of installing {kiwi} via a distribution |
| 11 |
package manager, it is also available on `pypi <https://pypi.org/project/kiwi/>`__ |
| 12 |
and can be installed using Python's package manager, pip, as follows: |
| 13 |
|
| 14 |
.. code:: shell-session |
| 15 |
|
| 16 |
$ sudo pip install kiwi |
| 17 |
|
| 18 |
.. _installation-from-obs: |
| 19 |
|
| 20 |
Installation from OBS |
| 21 |
--------------------- |
| 22 |
|
| 23 |
The most up-to-date packages of {kiwi} can be found on the Open Build Service |
| 24 |
in the `Virtualization:Appliances:Builder |
| 25 |
<https://download.opensuse.org/repositories/Virtualization:/Appliances:/Builder>`__ |
| 26 |
project. |
| 27 |
|
| 28 |
To install {kiwi}, follow these steps: |
| 29 |
|
| 30 |
1. Open the URL https://download.opensuse.org/repositories/Virtualization:/Appliances:/Builder |
| 31 |
in your browser. |
| 32 |
|
| 33 |
2. Right-click on the link of your preferred operating system and |
| 34 |
copy the URL. In Firefox, it is the menu :menuselection:`Copy link address`. |
| 35 |
|
| 36 |
3. Insert the copied URL from the last step into your shell. The `DIST` |
| 37 |
placeholder contains the respective distribution. |
| 38 |
Use :command:`zypper addrepo` to add it to the list of your repositories: |
| 39 |
|
| 40 |
.. code:: shell-session |
| 41 |
|
| 42 |
$ sudo zypper addrepo \ |
| 43 |
http://download.opensuse.org/repositories/Virtualization:/Appliances:/Builder/<DIST> \ |
| 44 |
kiwi-appliance-builder |
| 45 |
|
| 46 |
4. Install {kiwi}: |
| 47 |
|
| 48 |
.. code:: shell-session |
| 49 |
|
| 50 |
$ sudo zypper --gpg-auto-import-keys install python3-kiwi |
| 51 |
|
| 52 |
|
| 53 |
.. note:: Other Distributions |
| 54 |
|
| 55 |
If your distribution is not using `zypper`, please use your |
| 56 |
package manager's appropriate command instead. For `dnf`, |
| 57 |
as an example, that is: |
| 58 |
|
| 59 |
.. code:: shell-session |
| 60 |
|
| 61 |
$ sudo dnf config-manager \ |
| 62 |
--add-repo https://download.opensuse.org/repositories/Virtualization:/Appliances:/Builder/<DIST>/Virtualization:Appliances:Builder.repo |
| 63 |
|
| 64 |
$ sudo dnf install python3-kiwi |
| 65 |
|
| 66 |
|
| 67 |
Installation from Distribution Repositories |
| 68 |
------------------------------------------- |
| 69 |
|
| 70 |
Some Linux distributions ship {kiwi} in their official repositories. These |
| 71 |
include **openSUSE** and **Fedora** since version 28. Note that these packages tend |
| 72 |
not to be as up-to-date as the packages from OBS, so some features described |
| 73 |
here might not exist yet. |
| 74 |
|
| 75 |
.. note:: |
| 76 |
|
| 77 |
There are many packages that contain the name *kiwi* in their name; some |
| 78 |
of these are not even Python packages. Please double-check the package's |
| 79 |
description to see whether it is actually the {kiwi} Appliance builder before |
| 80 |
installing it. Please also note that, depending on how the responsible |
| 81 |
packager has integrated {kiwi} into the distribution, the install |
| 82 |
name can be different from the instructions provided in: |
| 83 |
:ref:`installation-from-obs`. |
| 84 |
|
| 85 |
To install {kiwi} for the desired distribution, run the following command: |
| 86 |
|
| 87 |
Leap/Tumbleweed: |
| 88 |
.. code:: shell-session |
| 89 |
|
| 90 |
$ sudo zypper install python3-kiwi |
| 91 |
|
| 92 |
Fedora/Rawhide: |
| 93 |
.. code:: shell-session |
| 94 |
|
| 95 |
$ sudo dnf install kiwi-cli |
| 96 |
|
| 97 |
.. _example-descriptions: |
| 98 |
|
| 99 |
Example Appliance Descriptions |
| 100 |
------------------------------ |
| 101 |
|
| 102 |
There are two places for example appliance descriptions: |
| 103 |
|
| 104 |
The {kiwi} build tests: |
| 105 |
The {kiwi} project itself hosts a collection of appliance descriptions |
| 106 |
that are used for integration testing of the {kiwi} builder itself. |
| 107 |
These descriptions are required to build prior to any {kiwi} release |
| 108 |
and are also used as the base for this documentation. Please check |
| 109 |
them out when working with this reference guide: |
| 110 |
|
| 111 |
.. code:: shell-session |
| 112 |
|
| 113 |
$ git clone https://github.com/OSInside/kiwi |
| 114 |
|
| 115 |
$ tree -L 3 kiwi/build-tests |
| 116 |
|
| 117 |
The {kiwi} community descriptions project: |
| 118 |
There is a GitHub project hosting example appliance descriptions to be used |
| 119 |
with the next-generation {kiwi}. Contributions from the community make up |
| 120 |
the contents of this repository, and users who need an example for a specific |
| 121 |
use case and distribution can clone the project as follows: |
| 122 |
|
| 123 |
.. code:: shell-session |
| 124 |
|
| 125 |
$ git clone https://github.com/OSInside/kiwi-descriptions |