changelogとは、「yum update」時にバージョンアップされたパッケージの更新履歴を表示してくれます。
このプラグインを付加する事によって、「いつ」「誰が」「何を」「どうした」が分かります。
「changelog」のインストール 【FedoraCore5 から Fedora10 / CentOS5 の場合】 # yum -y install yum-changelog 【Fedora11 以降 / CentOS6 の場合】 # yum -y install yum-plugin-changelog |
yumの使用法を表示 # yum --help Loading "installonlyn" plugin Loading "changelog" plugin usage: yum [options] < update | install | info | remove | list | clean | provides | search | check-update | groupinstall | groupupdate | grouplist | groupinfo | groupremove | makecache | localinstall | erase | upgrade | whatprovides | localupdate | resolvedep | shell | deplist > options: -h, --help show this help message and exit -t, --tolerant be tolerant of errors -C run entirely from cache, don't update cache -c [config file] config file location -R [minutes] maximum command wait time -d [debug level] debugging output level -e [error level] error output level -y answer yes for all questions --version show Yum version and exit --installroot=[path] set install root --enablerepo=[repo] enable one or more repositories (wildcards allowed) --disablerepo=[repo] disable one or more repositories (wildcards allowed) --exclude=[package] exclude package(s) by name or glob --obsoletes enable obsoletes processing during updates --noplugins disable Yum plugins 「changelog」プラグインによって、付加されたオプション --changelog Show changelog delta of updated packages 通常のアップデートの場合 # yum update Loading "installonlyn" plugin Loading "changelog" plugin Setting up Update Process Setting up repositories core [1/3] updates [2/3] extras [3/3] Reading repository metadata in from local files Resolving Dependencies --> Populating transaction set with selected packages. Please wait. ---> Package httpd.i386 0:2.2.2-1.2 set to be updated --> Running transaction check Dependencies Resolved ============================================================================= Package Arch Version Repository Size ============================================================================= Updating: httpd i386 2.2.2-1.2 updates 1.1 M Transaction Summary ============================================================================= Install 0 Package(s) Update 1 Package(s) Remove 0 Package(s) Total download size: 1.1 M : : : 「--changelog」オプションを付加したアップデートの場合 # yum --changelog update Loading "installonlyn" plugin Loading "changelog" plugin Setting up Update Process Setting up repositories core [1/3] updates [2/3] extras [3/3] Reading repository metadata in from local files Resolving Dependencies --> Populating transaction set with selected packages. Please wait. ---> Downloading header for httpd to pack into transaction set. httpd-2.2.2-1.2.i386.rpm 100% |=========================| 68 kB 00:01 ---> Package httpd.i386 0:2.2.2-1.2 set to be updated --> Running transaction check 以下の様に現在インストールされているバージョンからインストールしようとしているバージョンまでの履歴が表示される Changes in packages about to be updated: httpd - 2.2.2-1.2.i386 * Thu Jul 27 07:00:00 2006 Joe Orton <[email protected]> 2.2.2-1.2 - add mod_rewrite security fix (CVE-2006-3747) * Thu Jul 20 07:00:00 2006 Joe Orton <[email protected]> 2.2.2-1.1 - fix segfault on dummy connection failure at graceful restart (#199429) * Fri May 12 07:00:00 2006 Joe Orton <[email protected]> 2.2.2-1.0 - update to 2.2.2 * Fri Apr 7 07:00:00 2006 Joe Orton <[email protected]> 2.2.0-5.2 - fix LDAP issues on 64-bit platforms (#188073) Dependencies Resolved ============================================================================= Package Arch Version Repository Size ============================================================================= Updating: httpd i386 2.2.2-1.2 updates 1.1 M Transaction Summary ============================================================================= Install 0 Package(s) Update 1 Package(s) Remove 0 Package(s) Total download size: 1.1 M : : : |
インストール後はデフォルトで「changelog」は有効となっています。
当該プラグインをアンインストールする事なく、設定ファイルで無効にすることができます。
changelog 設定ファイルの編集 # vi /etc/yum/pluginconf.d/changelog.conf [main] enabled=0 enabled 属性の値の意味 0:無効 1:有効 yumの使用法を表示 # yum --help Loading "installonlyn" plugin Loading "changelog" plugin usage: yum [options] < update | install | info | remove | list | clean | provides | search | check-update | groupinstall | groupupdate | grouplist | groupinfo | groupremove | makecache | localinstall | erase | upgrade | whatprovides | localupdate | resolvedep | shell | deplist > options: -h, --help show this help message and exit -t, --tolerant be tolerant of errors -C run entirely from cache, don't update cache -c [config file] config file location -R [minutes] maximum command wait time -d [debug level] debugging output level -e [error level] error output level -y answer yes for all questions --version show Yum version and exit --installroot=[path] set install root --enablerepo=[repo] enable one or more repositories (wildcards allowed) --disablerepo=[repo] disable one or more repositories (wildcards allowed) --exclude=[package] exclude package(s) by name or glob --obsoletes enable obsoletes processing during updates --noplugins disable Yum plugins 「--changelog」オプションがなくなっている |