zl程序教程

您现在的位置是:首页 >  其他

当前栏目

如何查看yum命令安装的软件的安装目录

安装软件命令 如何 查看 目录 yum
2023-09-11 14:19:01 时间

转载自:https://blog.csdn.net/wd2014610/article/details/79659073

 

今天使用yum 安装了一个软件,后来没有找到路径

1、首先安装一个redis

[root@iZbp1eem925ojwyx17ao9kZ ~]# yum install redis

 

2、查找redis的安装包

[root@iZbp1eem925ojwyx17ao9kZ ~]# rpm -qa|grep redis
redis-3.2.10-2.el7.x86_64
[root@iZbp1eem925ojwyx17ao9kZ ~]# 

 

3、查找安装包的安装路径

[root@iZbp1eem925ojwyx17ao9kZ ~]# rpm -ql redis-3.2.10-2.el7.x86_64
/etc/logrotate.d/redis
/etc/redis-sentinel.conf
/etc/redis.conf
/etc/systemd/system/redis-sentinel.service.d
/etc/systemd/system/redis-sentinel.service.d/limit.conf
/etc/systemd/system/redis.service.d
/etc/systemd/system/redis.service.d/limit.conf
/usr/bin/redis-benchmark
/usr/bin/redis-check-aof
/usr/bin/redis-check-rdb
/usr/bin/redis-cli