]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
docs: Update upgrade commands in HACKING.md
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Fri, 2 Aug 2024 13:18:45 +0000 (15:18 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Mon, 5 Aug 2024 13:00:24 +0000 (15:00 +0200)
- Add the required options to make the package managers non interactive
- Use apt-get instead of apt
- Remove --reinstall from apt-get command so we only install newer packages
- Add --needed to pacman command so we only install newer packages

docs/HACKING.md

index b17875f62c5a5b0d5d75d65d924da5e483ee0d90..4731dc05d403228d0a55f3ff392a7a809d7f3953 100644 (file)
@@ -69,10 +69,10 @@ another terminal on your host (choose the right one depending on the
 distribution of the container or virtual machine):
 
 ```sh
-mkosi -t none && mkosi ssh dnf upgrade --disablerepo="*" "/work/build/*.rpm" # CentOS/Fedora
-mkosi -t none && mkosi ssh apt install --reinstall "/work/build/*.deb" # Debian/Ubuntu
-mkosi -t none && mkosi ssh pacman -U "/work/build/*.pkg.tar" # Arch Linux
-mkosi -t none && mkosi ssh zypper install --allow-unsigned-rpm "/work/build/*.rpm" # OpenSUSE
+mkosi -t none && mkosi ssh dnf upgrade --disablerepo="*" --assumeyes "/work/build/*.rpm" # CentOS/Fedora
+mkosi -t none && mkosi ssh apt-get install "/work/build/*.deb" # Debian/Ubuntu
+mkosi -t none && mkosi ssh pacman --upgrade --needed --noconfirm "/work/build/*.pkg.tar" # Arch Linux
+mkosi -t none && mkosi ssh zypper --non-interactive install --allow-unsigned-rpm "/work/build/*.rpm" # OpenSUSE
 ```
 
 and optionally restart the daemon(s) you're working on using