Centos: yum install libevent-devel conflict with compat-libevent

Your existing version of compat-libevent14 comes from the PostgreSQL yum repository. There is a bug open on the conflict between compat-libevent14 and libevent-devel. And another one.

Assuming that you need the PostgreSQL repository enabled, your best course of action would be to remove compat-libevent14 and install libevent and libevent-devel from the PostgreSQL repository. This will necessitate removing any packages that require compat-libevent14, so only you can decide whether this is a reasonable course of action.

If this doesn't work out, your options are generally (a) contact the maintainers of the PostgreSQL yum repository and see if they have any plans to resolve those bugs or (b) fix the problem yourself and roll your own packages.


If you don't have any need for compat-libevent14 or for the version of libevent provided in the PostgreSQL repo, you can add exclude directives to the PostgreSQL repo file.

In /etc/yum.repos.d/pgdg-93-centos.repo you can edit the [pgdg93] section and add the following line:

exclude=*libevent*

Make sure you add it to the correct section in the repo file. This will exclude any libevent packages from the PostgreSQL repo and your package installations won't have package clashes.