Translated message

A translation of this page exists in English.

如何删除因为失败的 yum 导致的重复的软件包

Solution In Progress - Updated -

Issue

  • 如何删除在 Red Hat Enterprise Linux 中已安装了多个版本的软件包的旧版本?
  • 在 yum 失败后, yum-complete-transaction 无法完成,并且重复的项仍然存在。
  • yum 失败,带有信息 <package_name-version1> is a duplicate with <package_name-version2>
  • package-cleanup --cleandupes 失败,带有信息 Error: Depsolving loop limit reached

Environment

  • Red Hat Enterprise Linux 9
  • Red Hat Enterprise Linux 8
  • Red Hat Enterprise Linux 7
  • Red Hat Enterprise Linux 6
  • Red Hat Enterprise Linux 5

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