Fix Yum Update Duplicate Packages Issue

Yum logo

First install yum utils if it’s not installed

yum install yum-utils

1- Second, start with

yum update

2- If that doesn’t work, try

yum clean all
yum update

3- If the above doesn’t work, try the below:

yum update --skip-broken

Then (this might take a while)

yum check all

Then clean Duplicates

package-cleanup --cleandupes

Then update again:

yum update

In addition, if you just want to list the duplicates, (this will not fix anything)

package-cleanup --dupes # list out duplicates

In case of a disconnection while yum is cleaning, the following command will complete the cleanup:

yum-complete-transaction --cleanup-only

Questions? Ask below!

Leave a Reply

Your email address will not be published. Required fields are marked *