GNU/Linux >> LINUX-Kenntnisse >  >> Cent OS

So installieren Sie rsyslog7, wenn rsyslog5 bereits in CentOS/RHEL installiert ist

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 rsyslog
Hinweis :„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


Cent OS
  1. So installieren Sie phpMyAdmin auf RHEL 8 / CentOS 8

  2. So installieren Sie P7Zip auf RHEL 8 / CentOS 8

  3. So installieren Sie ntfs-3g auf RHEL 8 / CentOS 8

  4. So installieren Sie Icinga 2 unter CentOS 8 / RHEL 8

  5. So installieren Sie VMware Workstation 8 auf CentOS 6 / RHEL 6 (x86_64)

So installieren Sie cpan auf RHEL 8 / CentOS 8

So installieren Sie Ruby auf RHEL 8 / CentOS 8

So installieren Sie Docker CE auf RHEL 8 / CentOS 8

So installieren Sie VirtualBox 6.0 unter CentOS 8 / RHEL 8

So installieren Sie PHP 7.4 unter CentOS 8 / RHEL 8

So installieren Sie Cockpit unter CentOS 8