From 7ae96246f6cb56891908df2c22ff078e271fcab1 Mon Sep 17 00:00:00 2001 From: Daan De Meyer Date: Wed, 30 Oct 2024 10:43:58 +0100 Subject: [PATCH] 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. --- docs/HACKING.md | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/docs/HACKING.md b/docs/HACKING.md index b36e4bec0a5..cedf35fef0b 100644 --- a/docs/HACKING.md +++ b/docs/HACKING.md @@ -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: ```sh -mkosi -d -r -t none -f +mkosi -d -r -t none ``` -Afterwards the distribution packages will be located in `build/mkosi.output`. To -also build debuginfo packages, the following command can be used: +Afterwards the distribution packages will be located in +`build/mkosi.builddir/~~/`. To also build +debuginfo packages, the following command can be used: ```sh -mkosi -d -r -E WITH_DEBUG=1 -t none -f +mkosi -d -r -E WITH_DEBUG=1 -t none ``` To upgrade the systemd packages on the host system to the newer versions built by mkosi, run the following: ```sh -dnf upgrade build/mkosi.output/*.rpm # Fedora/CentOS -# TODO: Other distributions +dnf upgrade build/mkosi.builddir/~~/*.rpm # Fedora/CentOS +apt-get install build/mkosi.builddir/~~/*.deb # Debian/Ubuntu +pacman --upgrade --needed --noconfirm build/mkosi.builddir/~~/*.pkg.tar # Arch Linux +zypper --non-interactive install --allow-unsigned-rpm build/mkosi.builddir/~~/*.rpm # OpenSUSE ``` To downgrade back to the old version shipped by the distribution, run the