]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
Use rpm to install rpms in building rpms from source doc
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Sun, 5 Nov 2023 12:15:50 +0000 (13:15 +0100)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Mon, 6 Nov 2023 15:06:06 +0000 (16:06 +0100)
Let's get rid of an unnecessary indirection and just use rpm directly
to install the rpms we built in the previous step as all the dependencies
will be installed already and as such we don't need dnf.

docs/building-rpms-from-source.md

index afb92cf023548abf6ba56d52b1eee299d71e23e1..106283d8336bf940db01bdc1092baf41063c4d1d 100644 (file)
@@ -152,8 +152,5 @@ post-installation script:
 #!/bin/sh
 set -e
 
-dnf --cacheonly install "$OUTPUTDIR"/*mkosi*.rpm
+rpm --install "$OUTPUTDIR"/*mkosi*.rpm
 ```
-
-We make sure `dnf` never tries to sync the repositories when installing
-these local rpms by specifying `--cacheonly`.