Das Problem
Beim Versuch, rsyslog7 zu installieren, schlägt dies mit einem Konfliktfehler mit rsyslog fehl.
# 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
Die Lösung
Auf einem System können nicht gleichzeitig rsyslog und rsyslog7 installiert sein. Und das Dienstprogramm yum wird rsyslog nicht selbst entfernen. Nachfolgend sind die Schritte aufgeführt, die zum Entfernen von rsyslog und zum Installieren von rsyslog7 erforderlich sind.
1. Entfernen Sie zuerst rsyslog5.
# yum erase rsyslogHinweis :„yum erase rsyslog“ entfernt mehr als nur rsyslog. Es entfernt andere Pakete, die von rsyslog abhängig sind. Sie müssen neu installiert werden. Die Liste kann von Instanz zu Instanz variieren.
2. Lassen Sie uns nun rsyslog7 zusammen mit anderen abhängigen Paketen installieren.
# 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. Führen Sie eine Yum-Liste von rsyslog7 sowie den anderen Paketen durch, um sicherzustellen, dass sie installiert wurden.
# yum install rsyslog7 cronie cronie-anacron crontabs redhat-lsb redhat-lsb-compat redhat-lsb-core redhat-lsb-graphics redhat-lsb-printing sysstat
4. Starten Sie den rsyslog-Dienst
# service rsyslog start Starting system logger: [ OK ]
5. Überprüfen Sie /var/log/messages, um sicherzustellen, dass Version 7 ausgeführt wird
# 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