RHEL9 update fails with Problem: The operation would result in removing the following protected packages: systemd

Solution Verified - Updated -

Issue

  • dnf update / dnf update systemd fails with one of the following errors:
[rhel-9-6-196 ~]# dnf update
Updating Subscription Management repositories.
Red Hat Enterprise Linux 9 for x86_64 - BaseOS (RPMs)                                                                                                                                                          25 MB/s |  86 MB     00:03    
Red Hat Enterprise Linux 9 for x86_64 - AppStream (RPMs)                                                                                                                                                       21 MB/s |  72 MB     00:03    
Last metadata expiration check: 0:00:12 ago on Tue 04 Nov 2025 11:15:57 AM CET.
Error: 
 Problem: The operation would result in removing the following protected packages: systemd
(try to add '--allowerasing' to command line to replace conflicting packages or '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
[rhel-9-6-196 ~]# dnf update systemd
Updating Subscription Management repositories.
Last metadata expiration check: 0:04:37 ago on Tue 04 Nov 2025 11:32:20 AM CET.
Error: 
 Problem: cannot install the best update candidate for package systemd-252-51.el9.x86_64
  - nothing provides systemd-rpm-macros = 252-51.el9_6.3 needed by systemd-252-51.el9_6.3.x86_64 from rhel-9-for-x86_64-baseos-rpms
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)

Environment

  • Red Hat Enterprise Linux 9.6
  • dnf/yum
  • systemd-rpm-macros-252-51.el9_6.3 + systemd-252-51.el9_6.3.x86_64

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content