From 703e2b3f3ac93e66e493f88d660230e360d07abe Mon Sep 17 00:00:00 2001 From: Michal Bocek Date: Wed, 7 Aug 2024 14:50:34 +0200 Subject: [PATCH] Require yum on RHEL 8+ based systems (#1281) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The package manager on RHEL 8+ is dnf but for backwards compatibility reason a yum rpm is available to create symlinks pointing to dnf. If the yum package is missing, convert2rhel fails because it calls yum. Having yum as a dependency of convert2rhel on RHEL 8+ based systems will ensure that yum will be available (unless someone intentionally removes yum after the convert2rhel installation but then ¯\_(ツ)_/¯). --- packaging/convert2rhel.spec | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packaging/convert2rhel.spec b/packaging/convert2rhel.spec index 5b927609bb..1993128ad6 100644 --- a/packaging/convert2rhel.spec +++ b/packaging/convert2rhel.spec @@ -44,6 +44,8 @@ Requires: python%{python_pkgversion}-setuptools Requires: python%{python_pkgversion}-six %if 0%{?rhel} && 0%{?rhel} >= 8 Requires: dnf +# The yum rpm mainly takes care of creating symlinks to dnf. We need it since we call yum in convert2rhel. +Requires: yum # dnf-utils includes yumdownloader and package-cleanup we use Requires: dnf-utils Requires: grubby