"yum history undo" output: Error: Trying to remove "systemd", which is protected

Solution Verified - Updated -

Issue

  • When trying to use yum history undo <id> or yum history rollback <id> a yum transaction which includes systemd, yum fails with:

    Error: Trying to remove "systemd", which is protected
    

Environment

  • Red Hat Enterprise Linux (RHEL) 7
  • yum
  • systemd

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