Home / How-To & Tutorials / Linux / RHEL5 / CentOS5: File Conflicts when Upgrading VMWare Tools with Yum

RHEL5 / CentOS5: File Conflicts when Upgrading VMWare Tools with Yum

One of the issues that I have ran into is when you’re running VMWare virtual machines, and a new kernel comes out, it seems to break the vmware-tools upgrade processes. It was extremely frustrating, because you would go to update and see the following issues:

Transaction Check Error:

file /lib/modules/2.6.18-8.el5/extra/vmware-tools-vmxnet3/vmxnet3.ko from install of kmod-vmware-tools-vmxnet3- conflicts with file from package kmod-vmware-tools-vmxnet3-
 file /lib/modules/2.6.18-8.el5/extra/vmware-tools-vmxnet/vmxnet.ko from install of kmod-vmware-tools-vmxnet- conflicts with file from package kmod-vmware-tools-vmxnet-

The way that I was fixing it, was simply removing all of VMWare Tools packages, doing my updates and then reinstalling.. I would use a simple for loop for this:

for i in $(rpm -qa | grep -I vmware);do yum -y remove $i;done

This worked, but it was extremely annoying when you needed to upgrade a bunch of systems, and there was always that issue of forgetting to re-install the yum packages after and then you would reboot the node and the vmxnet3 driver wasn’t installed and your network interface wouldn’t come up.

I then stumbled upon a fancy package that you can install to relieve you from these hassles, it’s called yum-kmod. Once I found this package, it saved from having to remove the vmware packages completely. Just simply install yum-mod and it will handle the conflicts for you.

yum -y install yum-kmod

Please note, this is completely different on RHEL6 because yum-kmod is built into RHEL6. It’s really a pain, and I’ll write an additional article on this once I get to that point. I hope this helps you guys if you run into this issue, which is extremely frustrating.

If you know of a better way to resolve this, let us know.. but this seems to do the job, hassle-free.

About geoff

Intelligence is the ability to avoid doing work, yet getting the work done. ~Linus Torvalds

Leave a Reply

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