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

最新文章

  1. [LeetCode] Perfect Squares 完全平方数
  2. 将 java 项目打包成可运行的 jar 包(main 函数带参数),并上传到 linux 服务器上运行
  3. 黑马----JAVA泛型基础
  4. 常用的dos命令
  5. Reading Famous blog to prevent me wasting time on blind wandering
  6. java获得本机IP,名称等
  7. [Elixir008]Nested Module里的动态函数调用方式
  8. 64位Linux安装android开发IDE的全过程
  9. 让css初学者抓狂的属性float
  10. hdu 5512 Pagodas 扩展欧几里得推导+GCD
  11. [原创]leet code - path sum
  12. 在CSDN上看到的一个过滤方法,感觉还不错
  13. Istio入门实战与架构原理——使用Docker Compose搭建Service Mesh
  14. Android JNI 学习(五):References Api
  15. marathon 测试
  16. [UnityShader基础]05.模板测试
  17. fscanf_s与scanf_s的宽度参数与缓冲区参数分析
  18. mybaits拦截器+自定义注解
  19. python day05--字典
  20. Avoiding post increase or decrease

热门文章

  1. 《ACM国际大学生程序设计竞赛题解Ⅰ》——模拟题
  2. denyhost
  3. XPath总结(转)
  4. 学习AngularJs:Directive指令用法
  5. 必胜宅急送Web app设计背后的思考
  6. 网络接口 使用NSURLConnection完成Get和Post方法
  7. 利用System V消息队列实现回射客户/服务器
  8. TCP/IP协议原理与应用笔记07:HTTP、TCP/IP与socket区别
  9. Android ViewPager 打造炫酷欢迎页
  10. ASPNET5 诊断