更多: zhilu jiaocheng
解决方案
一个系统不能同时安装 rsyslog 和 rsyslog7.
yum 实用程序不会自行删除 rsyslog。
以下是删除 rsyslog 和安装 rsyslog7 所需的步骤。
- 首先删除 rsyslog5.
# yum erase rsyslog
注意:“yum erase rsyslog”将删除的不仅仅是 rsyslog。
它将删除依赖于 rsyslog 的其他软件包。
他们将不得不重新安装。
该列表可能因实例而异。
- 现在让我们安装 rsyslog7 和其他依赖包。
# yum install rsyslog7 cronie cronie-anacron crontabs redhat-lsb redhat-lsb-compat redhat-lsb-core redhat-lsb-graphics redhat-lsb-printing sysstat
- 执行 rsyslog7 和其他软件包的 yum 列表以确保它们已安装。
# yum install rsyslog7 cronie cronie-anacron crontabs redhat-lsb redhat-lsb-compat redhat-lsb-core redhat-lsb-graphics redhat-lsb-printing sysstat
- 启动rsyslog服务
# service rsyslog start Starting system logger: [ OK ]
- 检查 /var/log/messages 以确保版本 7 正在运行
# grep rsyslog /var/log/messages | tail -1 June 28 11:31:03 localhost rsyslogd: [oroirn software="rsyslogd" swVersion="7.4.10" x-pid="4384" x-info="http://www.rsyslog.com"] start
问题
尝试安装 rsyslog7 时,它失败并显示与 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
日期:2020-09-17 00:12:34 来源:oir作者:oir