yum/rpm 查看安裝位置

Posted 技術手扎

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了yum/rpm 查看安裝位置相关的知识,希望对你有一定的参考价值。

使用yum安裝非常方便和快速,解決了rpm單一安裝相依性的問題,但是安裝後,檔案到底安裝到哪了,以下方式,就可以查看到。


以下用安裝nginx為例:

  1. 先查詢系統中,有關nginx的rpm包
    [root@idces81 ~]# rpm -qa | grep "nginx"
    nginx-filesystem-1.20.1-2.el7.noarch
    nginx-1.20.1-2.el7.x86_64
  2. 查看nginx包安裝位置
    
    [root@idces81 ~]# rpm -ql nginx-1.20.1-2.el7.x86_64

/etc/logrotate.d/nginx
/etc/nginx/fastcgi.conf
/etc/nginx/fastcgi.conf.default
/etc/nginx/fastcgi_params
/etc/nginx/fastcgi_params.default
/etc/nginx/koi-utf
/etc/nginx/koi-win
/etc/nginx/mime.types
/etc/nginx/mime.types.default
/etc/nginx/nginx.conf
/etc/nginx/nginx.conf.default
/etc/nginx/scgi_params
/etc/nginx/scgi_params.default
/etc/nginx/uwsgi_params
/etc/nginx/uwsgi_params.default
/etc/nginx/win-utf
/usr/bin/nginx-upgrade
/usr/lib/systemd/system/nginx.service
/usr/lib64/nginx/modules
/usr/sbin/nginx
/usr/share/doc/nginx-1.20.1
/usr/share/doc/nginx-1.20.1/CHANGES
/usr/share/doc/nginx-1.20.1/README
/usr/share/doc/nginx-1.20.1/README.dynamic
/usr/share/doc/nginx-1.20.1/UPGRADE-NOTES-1.6-to-1.10
/usr/share/licenses/nginx-1.20.1
/usr/share/licenses/nginx-1.20.1/LICENSE
/usr/share/man/man3/nginx.3pm.gz
/usr/share/man/man8/nginx-upgrade.8.gz
/usr/share/man/man8/nginx.8.gz
/usr/share/nginx/html/404.html
/usr/share/nginx/html/50x.html
/usr/share/nginx/html/en-US
/usr/share/nginx/html/icons
/usr/share/nginx/html/icons/poweredby.png
/usr/share/nginx/html/img
/usr/share/nginx/html/index.html
/usr/share/nginx/html/nginx-logo.png
/usr/share/nginx/html/poweredby.png
/usr/share/vim/vimfiles/ftdetect/nginx.vim
/usr/share/vim/vimfiles/ftplugin/nginx.vim
/usr/share/vim/vimfiles/indent/nginx.vim
/usr/share/vim/vimfiles/syntax/nginx.vim
/var/lib/nginx
/var/lib/nginx/tmp
/var/log/nginx
/var/log/nginx/access.log
/var/log/nginx/error.log

以上是关于yum/rpm 查看安裝位置的主要内容,如果未能解决你的问题,请参考以下文章

yum小结

linux 上安裝lnmp

centos软件是有四种安装方式吗?yum,rpm,二进制和源代码?

Linux系统常用指令进程管理&prm和yum

yum rpm总线错误总线错误(吐核)如何解决

Redhat7.3更换CentOS7 yum源