以前、BashのHistoryをSyslogに出力(CentOS6)する方法を紹介しました。 上記の記事ではBashをソースからコンパイルし、バイナリは/usr/local/bin/bashに配置され、 パッケージ(yum)で入れた/bin/bashと二つ存在する状態になっていました。 そこで今回は、パッケージ(yum)で入れたbin/bashをアップデートする形になるように、 上記のBashをRPMとして作成してみました。 ○準備(必要パッケージのインストールをSRPMのインストール) ビルドに必要なパッケージとBashのソースRPMをインストールします。 # yum -y install rpm-build texinfo bison ncurses-devel autoconf gettext gcc make # cd /root/ # rpm -Uvh http://vault.