The Problem
When attempting to install rsyslog7, it fails with a conflict error with rsyslog.
# yum install rsyslog7
...
Resolving Dependencies
--> Running transaction check
---> Package rsyslog7.x86_64 0:7.4.10-7.el6 will be installed
--> Processing Dependency: libestr.so.0()(64bit) for package: rsyslog7-7.4.10-7.el6.x86_64
--> Running transaction check
---> Package libestr.x86_64 0:0.1.9-2.el6 will be installed
--> Processing Conflict: rsyslog7-7.4.10-7.el6.x86_64 conflicts rsyslog
--> Finished Dependency Resolution
Error: rsyslog7 conflicts with rsyslog-5.8.10-10.0.1.el6_6.x86_64
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
The Solution
A system cannot have both rsyslog and rsyslog7 installed at the same time. And the yum utility will not remove rsyslog on its own. Below are the steps needed to remove rsyslog and install rsyslog7.
1. Start by removing rsyslog5 first.
# yum erase rsyslog
Note: “yum erase rsyslog” will remove more than just rsyslog. It will remove other packages that are dependent upon rsyslog. They will have to be reinstalled. The list may vary from instance to instance.
2. Lets now install rsyslog7 along with other dependent packages.
# yum install rsyslog7 cronie cronie-anacron crontabs redhat-lsb redhat-lsb-compat redhat-lsb-core redhat-lsb-graphics redhat-lsb-printing sysstat Loaded plugins: refresh-packagekit, security, ulninfo Setting up Install Process Resolving Dependencies --> Running transaction check ---> Package cronie.x86_64 0:1.4.4-16.el6_8.2 will be installed ---> Package cronie-anacron.x86_64 0:1.4.4-16.el6_8.2 will be installed ---> Package crontabs.noarch 0:1.10-33.el6 will be installed ---> Package redhat-lsb.x86_64 0:4.0-7.0.2.el6 will be installed ---> Package redhat-lsb-compat.x86_64 0:4.0-7.0.2.el6 will be installed ---> Package redhat-lsb-core.x86_64 0:4.0-7.0.2.el6 will be installed ... Installed: cronie.x86_64 0:1.4.4-16.el6_8.2 cronie-anacron.x86_64 0:1.4.4-16.el6_8.2 crontabs.noarch 0:1.10-33.el6 redhat-lsb.x86_64 0:4.0-7.0.2.el6 redhat-lsb-compat.x86_64 0:4.0-7.0.2.el6 redhat-lsb-core.x86_64 0:4.0-7.0.2.el6 redhat-lsb-graphics.x86_64 0:4.0-7.0.2.el6 redhat-lsb-printing.x86_64 0:4.0-7.0.2.el6 rsyslog7.x86_64 0:7.4.10-7.el6 sysstat.x86_64 0:9.0.4-33.el6Dependency Installed: libestr.x86_64 0:0.1.9-2.el6Complete!
3. Perform a yum list of rsyslog7 as well as the other packages to ensure they were installed.
# yum install rsyslog7 cronie cronie-anacron crontabs redhat-lsb redhat-lsb-compat redhat-lsb-core redhat-lsb-graphics redhat-lsb-printing sysstat
4. Start the rsyslog service
# service rsyslog start Starting system logger: [ OK ]
5. Check /var/log/messages to ensure version 7 is running
# grep rsyslog /var/log/messages | tail -1 June 28 11:31:03 localhost rsyslogd: [origin software="rsyslogd" swVersion="7.4.10" x-pid="4384" x-info="http://www.rsyslog.com"] start