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