我尝试将Amazon Linux AMI 2015.09上的rsyslog 5.8.10升级到v8.15。
这是我的步骤:
vi /etc/yum.repos.d/rsyslog.repo
[rsyslog_v8]
name=Adiscon CentOS-$releasever - local packages for $basearch
baseurl=http://rpms.adiscon.com/v8-stable/epel-7/$basearch
enabled=0
gpgcheck=0
gpgkey=http://rpms.adiscon.com/RPM-GPG-KEY-Adiscon
protect=1
sudo yum install rsyslog --enablerepo = rsyslog_v8 --setopt = rsyslog_v8.priority = 1
Loaded plugins: priorities, update-motd, upgrade-helper
amzn-main/latest | 2.1 kB 00:00
amzn-updates/latest | 2.3 kB 00:00
rsyslog_v8/x86_64 | 2.5 kB 00:00
zabbix | 951 B 00:00
5 packages excluded due to repository priority protections
Resolving Dependencies
--> Running transaction check
---> Package rsyslog.x86_64 0:5.8.10-9.26.amzn1 will be updated
---> Package rsyslog.x86_64 0:8.15.0-1.el7 will be an update
--> Processing Dependency: libsystemd-journal.so.0(LIBSYSTEMD_JOURNAL_38)(64bit) for package: rsyslog-8.15.0-1.el7.x86_64
--> Processing Dependency: libsystemd-journal.so.0(LIBSYSTEMD_JOURNAL_201)(64bit) for package: rsyslog-8.15.0-1.el7.x86_64
--> Processing Dependency: libsystemd-journal.so.0(LIBSYSTEMD_JOURNAL_183)(64bit) for package: rsyslog-8.15.0-1.el7.x86_64
--> Processing Dependency: libgt for package: rsyslog-8.15.0-1.el7.x86_64
--> Processing Dependency: libsystemd-journal.so.0()(64bit) for package: rsyslog-8.15.0-1.el7.x86_64
--> Processing Dependency: libsystemd-id128.so.0()(64bit) for package: rsyslog-8.15.0-1.el7.x86_64
--> Processing Dependency: liblogging-stdlog.so.0()(64bit) for package: rsyslog-8.15.0-1.el7.x86_64
--> Processing Dependency: libjson-c.so.2()(64bit) for package: rsyslog-8.15.0-1.el7.x86_64
--> Processing Dependency: libgthttp.so.0()(64bit) for package: rsyslog-8.15.0-1.el7.x86_64
--> Processing Dependency: libgtbase.so.0()(64bit) for package: rsyslog-8.15.0-1.el7.x86_64
--> Processing Dependency: libestr.so.0()(64bit) for package: rsyslog-8.15.0-1.el7.x86_64
--> Running transaction check
---> Package json-c.x86_64 0:0.11-6.8.amzn1 will be installed
---> Package libestr.x86_64 0:0.1.10-1.el7 will be installed
---> Package libgt.x86_64 0:0.3.11-1.el7 will be installed
---> Package liblogging.x86_64 0:1.0.5-1.el7 will be installed
---> Package rsyslog.x86_64 0:8.15.0-1.el7 will be an update
--> Processing Dependency: libsystemd-journal.so.0(LIBSYSTEMD_JOURNAL_38)(64bit) for package: rsyslog-8.15.0-1.el7.x86_64
--> Processing Dependency: libsystemd-journal.so.0(LIBSYSTEMD_JOURNAL_201)(64bit) for package: rsyslog-8.15.0-1.el7.x86_64
--> Processing Dependency: libsystemd-journal.so.0(LIBSYSTEMD_JOURNAL_183)(64bit) for package: rsyslog-8.15.0-1.el7.x86_64
--> Processing Dependency: libsystemd-journal.so.0()(64bit) for package: rsyslog-8.15.0-1.el7.x86_64
--> Processing Dependency: libsystemd-id128.so.0()(64bit) for package: rsyslog-8.15.0-1.el7.x86_64
--> Finished Dependency Resolution
Error: Package: rsyslog-8.15.0-1.el7.x86_64 (rsyslog_v8)
Requires: libsystemd-journal.so.0()(64bit)
Error: Package: rsyslog-8.15.0-1.el7.x86_64 (rsyslog_v8)
Requires: libsystemd-id128.so.0()(64bit)
Error: Package: rsyslog-8.15.0-1.el7.x86_64 (rsyslog_v8)
Requires: libsystemd-journal.so.0(LIBSYSTEMD_JOURNAL_201)(64bit)
Error: Package: rsyslog-8.15.0-1.el7.x86_64 (rsyslog_v8)
Requires: libsystemd-journal.so.0(LIBSYSTEMD_JOURNAL_38)(64bit)
Error: Package: rsyslog-8.15.0-1.el7.x86_64 (rsyslog_v8)
Requires: libsystemd-journal.so.0(LIBSYSTEMD_JOURNAL_183)(64bit)
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
答案 0 :(得分:5)
这是我找到工作的步骤:
vi /etc/yum.repos.d/rsyslog.repo
[v8-stable]
name=Adiscon CentOS-6 - local packages for \$basearch
baseurl=http://rpms.adiscon.com/v8-stable/epel-6/\$basearch
enabled=0
gpgcheck=0
gpgkey=http://rpms.adiscon.com/RPM-GPG-KEY-Adiscon
protect=1
答案 1 :(得分:3)
为了能够在Amazon Linux实例上安装rsyslog 8,您需要通过设置' enable = 1'来启用repo。以下是与我合作的步骤:
将以下内容放入新创建的文件中:
[V8-稳定]
name = Adiscon CentOS-6 - \ $ basearch的本地包 baseURL时= http://rpms.adiscon.com/v8-stable/epel-6/ \ $ basearch
启用= 1个
gpgcheck = 0
gpgkey = http://rpms.adiscon.com/RPM-GPG-KEY-Adiscon
保护= 1
如果要升级rsyslog,请键入以下命令
如果要安装rsyslog,请使用以下命令yum upgrade rsyslog --disablerepo = amzn-main
yum install rsyslog --disablerepo = amzn-main