普段使わないyumコマンド

Error: database disk image is malformed.
と出たので、キャッシュを削除

# yum clean all

実行中のままのyumトランザクションを終了

# yum install yum-utils
# yum-complete-transaction

指定ファイルが含まれるpkgを検索

# yum whatprovides  */pg_stat_statements--1.0.sql
postgresql91-contrib-9.1.6-1PGDG.rhel5.i386 : Contributed source and binaries distributed with PostgreSQL
Repo        : installed
Matched from:
Filename    : /usr/pgsql-9.1/share/extension/pg_stat_statements--1.0.sql