Fixing yum
- May 23rd, 2014
- Posted in Documentation
- Write comment
OS: CentOS6
I was getting a bunch of duplicate package messages when I tried to update one of my servers. It had been a while and I didn’t remember what I might have done, but I suspect that I stopped a yum update in the middle to cause all the duplicates.
Here are a list of commands that I used in the past to get yum working again:
Complete any unfinished transactions, if it was stopped in the middle at some point:
# yum-complete-transaction
Will clean all cached data:
# yum clean all
List duplicate packages:
# package-cleanup –dupes
Remove duplicate packages:
# package-cleanup –cleandupes
No comments yet.