[root@wang /]# rpm -qa // 查看安装所有包
[root@wang /]# rpm -qa |grep vim // 查询所安装的包 +包名
[root@wang /]# rpm -qi libattr-devel //查询包的安装信息
Name : libattr-devel Relocations: (not relocatable)
Version : 2.4.44 Vendor: CentOS
Release : 7.el6 Build Date: 2011年09月24日 星期六 02时54分00秒
Install Date: 2016年10月14日 星期五 0