• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • VCS
  • Interview Questions
  • Database
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

How to install rsyslog7 when rsyslog5 is already installed in CentOS/RHEL

by admin

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

Filed Under: CentOS/RHEL 5, CentOS/RHEL 6, Linux

Some more articles you might also be interested in …

  1. sensible-editor: command not found
  2. blockout2: Tetris like game in 3D (Command Examples)
  3. find Command Examples in Linux
  4. lnstat Command Examples in Linux
  5. top Command Examples in Linux
  6. Sample /etc/multipath.conf file
  7. mimetype Command Examples in Linux
  8. How To Send Mails To an External User With Mailx on Linux
  9. pacman Command Examples in Linux (Cheat Sheet)
  10. avifenc Command in Linux with Examples

You May Also Like

Primary Sidebar

Recent Posts

  • gml2gv Command Examples
  • glow Command Examples
  • glib-compile-resources Command Examples
  • glances Command Examples

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright