From mdomonko at redhat.com Mon Oct 7 12:47:36 2024 From: mdomonko at redhat.com (Michal Domonkos) Date: Mon, 7 Oct 2024 14:47:36 +0200 Subject: RPM 4.20.0 released! Message-ID: Marking the end of the RPM 4.x era, one that spans over two decades (!) now, here comes one last major update in the 4.x series, before we make the leap to the 6.x series next year. As per tradition, major releases are packed with cool new features, and this one is no exception. Among the most notable ones are: * Declarative build system support * Dynamic spec improvements * Guaranteed, RPM-controlled per-build directory * Support for spec-local file attributes and generators * Support for group membership in sysusers.d(5) files * Proper distro-agnostic debuginfo support * Sanitized spec comments and indentation syntax * Sanitized --build-in-place mode * New unshare plugin for scriptlet isolation * Plugin API made public This release also fixes 20+ bugs, including a couple of (older) regressions. We also did some more cleanup work in the codebase, including the removal of the legacy OpenPGP parser, the porting of the Python plugins to the stable Python ABI and the Perl dependency generators split-off into their own repo. This time around, given the nature of some of the changes, the Compatibility Notes section in the release notes has grown quite a bit. You may want to check it out, in case some of it impacts your packages or use cases (see the link below). As mentioned earlier, there will be no RPM 4.21. We are bumping the format version to 6 (skipping 5 on purpose, see below) so expect no less than RPM 6.0 around this time next year. Notwithstanding the minor updates to 4.20 and possibly 4.19 too, of course. Last but not least, if you're interested in a more detailed walk-through of the features in 4.20, Joe Brockmeier of LWN.net has recently published a nice post, make sure to check it out: https://lwn.net/Articles/988927/ (It also mentions the story behind the infamous version skip.) Finally, to obtain the source tarball or the full release notes, head over to: https://rpm.org/wiki/Releases/4.20.0 On behalf of the RPM team, Michal From felix at kngnt.org Mon Oct 21 10:01:54 2024 From: felix at kngnt.org (Felix Rubio) Date: Mon, 21 Oct 2024 12:01:54 +0200 Subject: Is there any way to mark a package as automatically installed, using RPM? Message-ID: <43cb232e7f68adf4a701759adaf9b736@kngnt.org> Hi everybody, I need to use RPM to install a set of packages with dependencies between them. I want to mark some of the packages as if automatically installed, so that they can be autoremoved when not needed anymore. Is there any way I can do this with RPM? Thank you for your time, and regards -- Felix From felix at kngnt.org Mon Oct 21 09:59:01 2024 From: felix at kngnt.org (Felix Rubio) Date: Mon, 21 Oct 2024 11:59:01 +0200 Subject: mark package as automatically installed Message-ID: <8a2bf81685f0fbc224f8917e8be46c6d@kngnt.org> Hi everybody, I am trying to install a set of packages that we build, with some dependencies between them. I want to mark the dependencies as if automatically installed but I do not see how to do it. I need to use rpm because then I can set dbpath, because we have different staging environments with different db locations. How can I get this done? Does anybody have some hint? Thank you very much for your time, and regards! -- Felix From msuchy at redhat.com Mon Oct 21 10:29:43 2024 From: msuchy at redhat.com (=?UTF-8?Q?Miroslav_Such=C3=BD?=) Date: Mon, 21 Oct 2024 12:29:43 +0200 Subject: mark package as automatically installed In-Reply-To: <8a2bf81685f0fbc224f8917e8be46c6d@kngnt.org> References: <8a2bf81685f0fbc224f8917e8be46c6d@kngnt.org> Message-ID: Dne 21. 10. 24 v 11:59 dop. Felix Rubio napsal(a): > > How can I get this done? Does anybody have some hint? man dnf5 mark -- Miroslav Suchy, RHCA Red Hat, Manager, Packit and CPT, #brno, #fedora-buildsys From felix at kngnt.org Mon Oct 21 11:18:49 2024 From: felix at kngnt.org (Felix Rubio) Date: Mon, 21 Oct 2024 13:18:49 +0200 Subject: mark package as automatically installed In-Reply-To: References: <8a2bf81685f0fbc224f8917e8be46c6d@kngnt.org> Message-ID: <15242D89-33DD-4075-9AE9-2D2C53257B9A@kngnt.org> But how can I then specify the location of the RPM db? Thank you! On October 21, 2024 12:29:43 PM GMT+02:00, "Miroslav Such?" wrote: >Dne 21. 10. 24 v 11:59 dop. Felix Rubio napsal(a): >> >> How can I get this done? Does anybody have some hint? > >man dnf5 mark > Felix Rubio