Every once in awhile I'd have one of my linux boxes crashing during a yum update. If yum doesn't have a chance to do cleanup, it will leave a bunch of duplicate rpms that will totally mess up yum and it's dependency resolution. I used to have this rpm one-liner a colleague had come up with to list duplicates, then would manually remove them. This was a pretty not-fun process.
Well, apparently there's a tool that does this for you:
package-cleanup --cleandupes
package-cleanup --dupes
will list any duplicates. This is in the rpm yum-utils. I wonder when this was added?
1 comment:
What happens if your box crashes while installing the tools that help you prevent crashes?
Post a Comment