yum:列出已安装的安装包
[root@localhost ~]# yum list | grep mysql
akonadi-mysql.x86_64 1.9.2-4.el7 base
apr-util-mysql.x86_64 1.5.2-6.el7 base
dovecot-mysql.x86_64 1:2.2.10-5.el7 base
freeradius-mysql.x86_64 3.0.4-6.el7 base
libdbi-dbd-mysql.x86_64 0.8.3-16.el7 base
mysql-connector-java.noarch 1:5.1.25-3.el7 base
mysql-connector-odbc.x86_64 5.2.5-6.el7 base
pcp-pmda-mysql.x86_64 3.10.6-2.el7 base
php-mysql.x86_64 5.4.16-36.3.el7_2 updates
php-mysqlnd.x86_64 5.4.16-36.3.el7_2 updates
qt-mysql.i686 1:4.8.5-12.el7_2 updates
qt-mysql.x86_64 1:4.8.5-12.el7_2 updates
redland-mysql.x86_64 1.0.16-6.el7 base
rsyslog-mysql.x86_64 7.4.7-12.el7 base
rpm -qa 查询所有安装的rpm包,可以配合grep命令:
[root@localhost ~]# rpm -qa httpd
httpd-2.4.6-40.el7.centos.4.x86_64
rpm -qi 查询某个具体包的介绍:
[root@localhost ~]# rpm -qi httpd
Name : httpd
Version : 2.4.6
Release : 40.el7.centos.4
Architecture: x86_64
Install Date: 2016年07月29日 星期五 13时01分28秒
Group : System Environment/Daemons
Size : 9806117
License : ASL 2.0
Signature : RSA/SHA256, 2016年07月19日 星期二 00时05分16秒, Key ID 24c6a8a7f4a80eb5
Source RPM : httpd-2.4.6-40.el7.centos.4.src.rpm
Build Date : 2016年07月18日 星期一 23时32分11秒
Build Host : worker1.bsys.centos.org
Relocations : (not relocatable)
Packager : CentOS BuildSystem <http://bugs.centos.org>
Vendor : CentOS
URL : http://httpd.apache.org/
Summary : Apache HTTP Server
Description :
The Apache HTTP Server is a powerful, efficient, and extensible
web server.
rpm -ql 列出某个具体包的所有文件:
[root@localhost ~]# rpm -ql httpd
/etc/httpd
/etc/httpd/conf
/etc/httpd/conf.d
/etc/httpd/conf.d/README
/etc/httpd/conf.d/autoindex.conf
/etc/httpd/conf.d/userdir.conf
/etc/httpd/conf.d/welcome.conf
/etc/httpd/conf.modules.d
/etc/httpd/conf.modules.d/00-base.conf
/etc/httpd/conf.modules.d/00-dav.conf
/etc/httpd/conf.modules.d/00-lua.conf
/etc/httpd/conf.modules.d/00-mpm.conf
/etc/httpd/conf.modules.d/00-proxy.conf
/etc/httpd/conf.modules.d/00-systemd.conf
/etc/httpd/conf.modules.d/01-cgi.conf
/etc/httpd/conf/httpd.conf
/etc/httpd/conf/magic
/etc/httpd/logs
/etc/httpd/modules
/etc/httpd/run
......
......
dd