Installation¶
Note
This document describes how to install KIWI NG. Apart from the preferred method to install KIWI NG via rpm, it is also available on pypi and can be installed via pip.
Installation from OBS¶
The most up to date packages of KIWI NG can be found on the Open Build Service in the Virtualization:Appliances:Builder project.
To install KIWI NG, follow these steps:
Open the URL https://download.opensuse.org/repositories/Virtualization:/Appliances:/Builder in your browser.
Right-click on the link of your preferred operating system and copy the URL. In Firefox it is the menu
.Insert the copied URL from the last step into your shell. The
DIST
placeholder contains the respective distribution. Use zypper addrepo to add it to the list of your repositories:$ sudo zypper addrepo http://download.opensuse.org/repositories/Virtualization:/Appliances:/Builder/<DIST> appliance-builder
If your distribution is not using zypper, please use your package manager’s appropriate command instead. For dnf that is:
$ sudo dnf config-manager --add-repo https://download.opensuse.org/repositories/Virtualization:/Appliances:/Builder/<DIST>/Virtualization:Appliances:Builder.repo
Add the repositories’ signing-key to your package manager’s database. For rpm run:
$ sudo rpm --import https://build.opensuse.org/projects/Virtualization:Appliances:Builder/public_key
And verify that you got the correct key:
$ rpm -qi gpg-pubkey-74cbe823-* | gpg2 gpg: WARNING: no command supplied. Trying to guess what you mean ... pub dsa1024 2009-05-04 [SC] [expires: 2020-10-09] F7E82012C74FD0B85F5334DC994B195474CBE823 uid Virtualization:Appliances OBS Project <Virtualization:Appliances@build.opensuse.org>
Install KIWI NG:
$ sudo zypper in python3-kiwi
Installation from your distribution’s repositories¶
Note
There are many packages that contain the name KIWI NG in their name, some of these are even python packages. Please double check the packages’ description whether it is actually the KIWI NG Appliance builder before installing it.
Some Linux distributions ship KIWI NG in their official repositories. These include openSUSE Tumbleweed, openSUSE Leap, and Fedora since version 28. Note, these packages tend to not be as up to date as the packages from OBS, so some features described here might not exist yet.
To install KIWI NG on openSUSE, run the following command:
$ sudo zypper install python3-kiwi
On Fedora, use the following command instead:
$ sudo dnf install kiwi-cli
Installation from PyPI¶
KIWI NG can be obtained from the Python Package Index (PyPi) via Python’s package manager pip:
$ pip install kiwi
Example Appliance Descriptions¶
There is a GitHub project hosting example appliance descriptions to be used with the next generation KIWI NG. Users who need an example to start with should clone the project as follows:
$ git clone https://github.com/OSInside/kiwi-descriptions