1
0
mirror of https://github.com/systemd/systemd.git synced 2024-12-22 17:35:35 +03:00

docs: Update instructions for building distribution packages in HACKING.md

When building distribution packages without building an image, the
distribution packages will only be located in mkosi.builddir/ now and
not in mkosi.output/, so update the documentation to reflect that.

Also add installation instructions for distributions other than CentOS/Fedora
while we're at it.
This commit is contained in:
Daan De Meyer 2024-10-30 10:43:58 +01:00
parent a33f453702
commit 7ae96246f6

View File

@ -133,22 +133,25 @@ To build distribution packages for a specific distribution and release without
building an actual image, the following command can be used: building an actual image, the following command can be used:
```sh ```sh
mkosi -d <distribution> -r <release> -t none -f mkosi -d <distribution> -r <release> -t none
``` ```
Afterwards the distribution packages will be located in `build/mkosi.output`. To Afterwards the distribution packages will be located in
also build debuginfo packages, the following command can be used: `build/mkosi.builddir/<distribution>~<release>~<architecture>/`. To also build
debuginfo packages, the following command can be used:
```sh ```sh
mkosi -d <distribution> -r <release> -E WITH_DEBUG=1 -t none -f mkosi -d <distribution> -r <release> -E WITH_DEBUG=1 -t none
``` ```
To upgrade the systemd packages on the host system to the newer versions built To upgrade the systemd packages on the host system to the newer versions built
by mkosi, run the following: by mkosi, run the following:
```sh ```sh
dnf upgrade build/mkosi.output/*.rpm # Fedora/CentOS dnf upgrade build/mkosi.builddir/<distribution>~<release>~<architecture>/*.rpm # Fedora/CentOS
# TODO: Other distributions apt-get install build/mkosi.builddir/<distribution>~<release>~<architecture>/*.deb # Debian/Ubuntu
pacman --upgrade --needed --noconfirm build/mkosi.builddir/<distribution>~<release>~<architecture>/*.pkg.tar # Arch Linux
zypper --non-interactive install --allow-unsigned-rpm build/mkosi.builddir/<distribution>~<release>~<architecture>/*.rpm # OpenSUSE
``` ```
To downgrade back to the old version shipped by the distribution, run the To downgrade back to the old version shipped by the distribution, run the