>

CENTOS 7: Fix yum after failed update

Ended up with a ton of duplicate errors and complaints about multiple architectures. Ran several things such as:

sudo yum update --skip-broken
sudo yum-complete-transaction
sudo yum-complete-transaction --cleanup-only
sudo yum update --skip-broken --exclude systemd-libs.otherarch
sudo package-cleanup --cleandupes

All fixed various things, but still left a handful of duplicates. This, as root, finally fixed:

for i in $(package-cleanup --dupes); do rpm -e --justdb $i --nodeps; done
yum update

banner ad

Comments are closed.