dhcp-common conflicts with file from package dhclient

I was downloading bunch of dependencies on CentOS 6.0_x86_64. Where I found this silly error.

Transaction Check Error:
file /usr/share/man/man5/dhcp-eval.5.gz from install of
dhcp-common-12:4.1.1-25.P1.el6_2.1.x86_64 conflicts with
file from package dhclient-12:4.1.1-12.P1.el6.x86_64

file /usr/share/man/man5/dhcp-options.5.gz from install of
dhcp-common-12:4.1.1-25.P1.el6_2.1.x86_64 conflicts with
file from package dhclient-12:4.1.1-12.P1.el6.x86_64

But the solution was really easy.

yum update dhclient
Advertisements

3 thoughts on “dhcp-common conflicts with file from package dhclient

  1. File conflicts are a thorny problem in package manager development. In the early days of package managers, it was strictly forbidden for multiple packages (even subpackages of the same source) to own the same file. Over time, the rules have been relaxed, so that “file conflicts” are okay in RPM at least a couple of scenarios: 1) If the file contents, ownership, and mode are exactly the same in the two packages, then both packages can own the file, and 2) if you install both 32-bit and 64-bit versions of a package, a 64-bit binary can supersede a 32-bit one (there is an attribute for files in rpms called “file color” which controls this).

    In your case, either those man pages moved from one package to the other in the update, or they are shared between the two packages, and having the versions out of sync meant that the file contents were different. Either way, glad you figured it out. 🙂

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s