From fweimer at redhat.com Fri Mar 8 10:43:37 2024 From: fweimer at redhat.com (Florian Weimer) Date: Fri, 08 Mar 2024 11:43:37 +0100 Subject: Guiding co-dependent RPM packages to swap nicely In-Reply-To: ("Miro =?utf-8?Q?Hron=C4=8Dok=22's?= message of "Wed, 21 Feb 2024 10:54:16 +0100") References: Message-ID: <878r2txaue.fsf@oldenburg.str.redhat.com> * Miro Hron?ok: > On my system, I have postgresql16 and postgresql16-plugin installed > and I want to "upgrade" to postgresql20*. > > Using my distribution package manager, I would want to run something like: > dnf swap postgresql16 postgresql20 > > However that will fail, as the package manager does not know I want to > also swap postgresql16-plugin with postgresql20-plugin. > > Is there something I can do as a package maintainer to "guide" the > co-dependent swap case? Have you tried using ?dnf shell? and entering both swap commands there/ Thanks, Florian From mhroncok at redhat.com Fri Mar 8 10:51:05 2024 From: mhroncok at redhat.com (=?UTF-8?Q?Miro_Hron=C4=8Dok?=) Date: Fri, 8 Mar 2024 11:51:05 +0100 Subject: Guiding co-dependent RPM packages to swap nicely In-Reply-To: <878r2txaue.fsf@oldenburg.str.redhat.com> References: <878r2txaue.fsf@oldenburg.str.redhat.com> Message-ID: <29ffef7e-8a6e-4779-8ad3-b0c9d1f6d27d@redhat.com> On 08. 03. 24 11:43, Florian Weimer wrote: > * Miro Hron?ok: > >> On my system, I have postgresql16 and postgresql16-plugin installed >> and I want to "upgrade" to postgresql20*. >> >> Using my distribution package manager, I would want to run something like: >> dnf swap postgresql16 postgresql20 >> >> However that will fail, as the package manager does not know I want to >> also swap postgresql16-plugin with postgresql20-plugin. >> >> Is there something I can do as a package maintainer to "guide" the >> co-dependent swap case? > > Have you tried using ?dnf shell? and entering both swap commands there/ I am actually looking for a metadata solution that would guide the package manager to do it for me, not for a way to swap them manually. -- Miro Hron?ok -- Phone: +420777974800 IRC: mhroncok