labunix's blog

labunixのラボUnix

CentOS7でrsyslogだけアップデートしてみる

■CentOS7でrsyslogだけアップデートしてみる

$ cat /etc/redhat-release 
CentOS Linux release 7.8.2003 (Core)

$ rpm -qa | grep rsyslog
rsyslog-8.24.0-52.el7.x86_64

$ sudo yum check-update | grep rsyslog
rsyslog.x86_64                         8.24.0-52.el7_8.2               updates  

$ rpm -qa | grep yum-plugin-downloadonly
$ rpm -qa | grep downloadonly
$ rpm -qa | grep yum-utils
yum-utils-1.1.31-54.el7_8.noarch

$ sudo yum update --downloadonly --downloaddir=. rsyslog

$ du -k rsyslog-8.24.0-52.el7_8.2.x86_64.rpm 
624	rsyslog-8.24.0-52.el7_8.2.x86_64.rpm

$ md5sum < rsyslog-8.24.0-52.el7_8.2.x86_64.rpm 
2bca580cacf0d000438cc3c925267c79  -

$ rpm -qip rsyslog-8.24.0-52.el7_8.2.x86_64.rpm 
Name        : rsyslog
Version     : 8.24.0
Release     : 52.el7_8.2
Architecture: x86_64
Install Date: (not installed)
Group       : System Environment/Daemons
Size        : 2007068
License     : (GPLv3+ and ASL 2.0)
Signature   : RSA/SHA256, 20200624023704秒, Key ID 24c6a8a7f4a80eb5
Source RPM  : rsyslog-8.24.0-52.el7_8.2.src.rpm
Build Date  : 20200624004014秒
Build Host  : x86-02.bsys.centos.org
Relocations : (not relocatable)
Packager    : CentOS BuildSystem <http://bugs.centos.org>
Vendor      : CentOS
URL         : http://www.rsyslog.com/
Summary     : Enhanced system logging and kernel message trapping daemon
Description :
Rsyslog is an enhanced, multi-threaded syslog daemon. It supports MySQL,
syslog/TCP, RFC 3195, permitted sender lists, filtering on any message part,
and fine grain output format control. It is compatible with stock sysklogd
and can be used as a drop-in replacement. Rsyslog is simple to set up, with
advanced features suitable for enterprise-class, encryption-protected syslog
relay chains.

$ rpm -qRp rsyslog-8.24.0-52.el7_8.2.x86_64.rpm 
/bin/sh
/bin/sh
/bin/sh
bash >= 2.0
config(rsyslog) = 8.24.0-52.el7_8.2
libc.so.6()(64bit)
libc.so.6(GLIBC_2.12)(64bit)
libc.so.6(GLIBC_2.14)(64bit)
libc.so.6(GLIBC_2.15)(64bit)
libc.so.6(GLIBC_2.17)(64bit)
libc.so.6(GLIBC_2.2.5)(64bit)
libc.so.6(GLIBC_2.3)(64bit)
libc.so.6(GLIBC_2.3.2)(64bit)
libc.so.6(GLIBC_2.3.4)(64bit)
libc.so.6(GLIBC_2.4)(64bit)
libc.so.6(GLIBC_2.8)(64bit)
libc.so.6(GLIBC_2.9)(64bit)
libdl.so.2()(64bit)
libdl.so.2(GLIBC_2.2.5)(64bit)
libestr >= 0.1.9
libestr.so.0()(64bit)
libfastjson.so.4()(64bit)
libgcc_s.so.1()(64bit)
libgcc_s.so.1(GCC_3.0)(64bit)
libgcc_s.so.1(GCC_3.3.1)(64bit)
libpthread.so.0()(64bit)
libpthread.so.0(GLIBC_2.12)(64bit)
libpthread.so.0(GLIBC_2.2.5)(64bit)
libpthread.so.0(GLIBC_2.3.2)(64bit)
librt.so.1()(64bit)
librt.so.1(GLIBC_2.2.5)(64bit)
librt.so.1(GLIBC_2.3.4)(64bit)
libsystemd.so.0()(64bit)
libsystemd.so.0(LIBSYSTEMD_209)(64bit)
libsystemd.so.0(LIBSYSTEMD_229)(64bit)
libuuid.so.1()(64bit)
libuuid.so.1(UUID_1.0)(64bit)
libz.so.1()(64bit)
logrotate >= 3.5.2
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(FileDigests) <= 4.6.0-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rtld(GNU_HASH)
systemd
systemd
systemd
rpmlib(PayloadIsXz) <= 5.2-1

$ rpm -q --requires rsyslog | awk '{gsub("\\(.*","",$1);print "rpm -q --whatprovides "$1 | "sort -uV"}' | sh | sort -uV
bash-4.2.46-34.el7.x86_64
config を提供するパッケージは存在しません。
libc.so.6 を提供するパッケージは存在しません。
libdl.so.2 を提供するパッケージは存在しません。
libestr-0.1.9-2.el7.x86_64
libestr.so.0 を提供するパッケージは存在しません。
libfastjson.so.4 を提供するパッケージは存在しません。
libgcc_s.so.1 を提供するパッケージは存在しません。
libpthread.so.0 を提供するパッケージは存在しません。
librt.so.1 を提供するパッケージは存在しません。
libsystemd.so.0 を提供するパッケージは存在しません。
libuuid.so.1 を提供するパッケージは存在しません。
libz.so.1 を提供するパッケージは存在しません。
logrotate-3.8.6-19.el7.x86_64
rpmlib を提供するパッケージは存在しません。
rtld を提供するパッケージは存在しません。
systemd-219-73.el7_8.6.x86_64

$ rpm -U --test rsyslog-8.24.0-52.el7_8.2.x86_64.rpm 
$ rpm -q --changelog rsyslog | head -10
* 水 1127 2019 Jiri Vymazal <jvymazal@redhat.com> - 8.24.0-52
RHEL 7.8 ERRATUM
- edited patch file ID for imfile to not log useless errors
  also improved file-id behavior to adress newly found problems
  resolves: rhbz#1763746

* 木 1107 2019 Jiri Vymazal <jvymazal@redhat.com> - 8.24.0-49
RHEL 7.8 ERRATUM
- fixed fsync patch to actually revognize the new option
  resolves: rhbz#1696686 (failedQA)

$ yum info rsyslog
読み込んだプラグイン:fastestmirror
Determining fastest mirrors
 * base: ftp-srv2.kddilabs.jp
 * epel: fedora.cs.nctu.edu.tw
 * extras: download.nus.edu.sg
 * updates: ftp-srv2.kddilabs.jp
インストール済みパッケージ
名前                : rsyslog
アーキテクチャー    : x86_64
バージョン          : 8.24.0
リリース            : 52.el7
容量                : 1.9 M
リポジトリー        : installed
提供元リポジトリー  : anaconda
要約                : Enhanced system logging and kernel message trapping daemon
URL                 : http://www.rsyslog.com/
ライセンス          : (GPLv3+ and ASL 2.0)
説明                : Rsyslog is an enhanced, multi-threaded syslog daemon. It supports MySQL,
                    : syslog/TCP, RFC 3195, permitted sender lists, filtering on any message part,
                    : and fine grain output format control. It is compatible with stock sysklogd
                    : and can be used as a drop-in replacement. Rsyslog is simple to set up, with
                    : advanced features suitable for enterprise-class, encryption-protected syslog
                    : relay chains.

利用可能なパッケージ
名前                : rsyslog
アーキテクチャー    : x86_64
バージョン          : 8.24.0
リリース            : 52.el7_8.2
容量                : 621 k
リポジトリー        : updates/7/x86_64
要約                : Enhanced system logging and kernel message trapping daemon
URL                 : http://www.rsyslog.com/
ライセンス          : (GPLv3+ and ASL 2.0)
説明                : Rsyslog is an enhanced, multi-threaded syslog daemon. It supports MySQL,
                    : syslog/TCP, RFC 3195, permitted sender lists, filtering on any message part,
                    : and fine grain output format control. It is compatible with stock sysklogd
                    : and can be used as a drop-in replacement. Rsyslog is simple to set up, with
                    : advanced features suitable for enterprise-class, encryption-protected syslog
                    : relay chains.

$ sudo yum install rsyslog-8.24.0-52.el7_8.2.x86_64.rpm 
[sudo] labunix のパスワード:
読み込んだプラグイン:fastestmirror
rsyslog-8.24.0-52.el7_8.2.x86_64.rpm を調べています: rsyslog-8.24.0-52.el7_8.2.x86_64
次のリポジトリーへの更新として rsyslog-8.24.0-52.el7_8.2.x86_64.rpm を設定します: rsyslog-8.24.0-52.el7.x86_64
依存性の解決をしています
--> トランザクションの確認を実行しています。
---> パッケージ rsyslog.x86_64 0:8.24.0-52.el7 を 更新
---> パッケージ rsyslog.x86_64 0:8.24.0-52.el7_8.2 を アップデート
--> 依存性解決を終了しました。

依存性を解決しました

=======================================================================================================================================
 Package                アーキテクチャー      バージョン                        リポジトリー                                      容量
=======================================================================================================================================
更新します:
 rsyslog                x86_64                8.24.0-52.el7_8.2                 /rsyslog-8.24.0-52.el7_8.2.x86_64                1.9 M

トランザクションの要約
=======================================================================================================================================
更新  1 パッケージ

合計容量: 1.9 M
Is this ok [y/d/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  更新します              : rsyslog-8.24.0-52.el7_8.2.x86_64                                                                       1/2 
  整理中                  : rsyslog-8.24.0-52.el7.x86_64                                                                           2/2 
  検証中                  : rsyslog-8.24.0-52.el7_8.2.x86_64                                                                       1/2 
  検証中                  : rsyslog-8.24.0-52.el7.x86_64                                                                           2/2 

更新:
  rsyslog.x86_64 0:8.24.0-52.el7_8.2                                                                                                   

完了しました!