rpmコマンドメモ ~rpmパッケージの詳細を確認したい~
※gccを例に
■インストール済みの特定パッケージの詳細を確認したい
$ rpm -qi gcc
[出力例]
Name : gcc Version : 4.8.5 Release : 4.el7 Architecture: x86_64 Install Date: yyyymmdd hh:mm:ss Group : Development/Languages Size : 39010978 License : GPLv3+ and GPLv3+ with exceptions and GPLv2+ with exceptions and LGPLv2+ and BSD Signature : RSA/SHA256, yyyymmdd hh:mm:ss, Key ID xxxxxxxx Source RPM : gcc-4.8.5-4.el7.src.rpm Build Date : yyyymmdd hh:mm:ss Build Host : worker1.bsys.centos.org Relocations : (not relocatable) Packager : CentOS BuildSystem <http://bugs.centos.org> Vendor : CentOS URL : http://gcc.gnu.org Summary : Various compilers (C, C++, Objective-C, Java, ...) Description : The gcc package contains the GNU Compiler Collection version 4.8. You'll need this package in order to compile C code.
$ rpm -qip <rpmファイル名>
上記と同じ出力結果
■インストールされたファイルのリストを確認したい
$ rpm -ql gcc