패키지 내부 파일 목록 확인
[user@centos7 ~]# rpm -qa |grep httpd httpd-tools-2.4.6-97.el7.centos.5.x86_64 httpd-2.4.6-97.el7.centos.5.x86_64 http-parser-2.7.1-5.el7_4.x86_64 [user@centos7 ~]# 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 ... [user@centos7 ~]# rpm -qlp httpd-2.4.6-97.el7.centos.5.x86_64.rpm // 실제 rpm 파일이 있어야 됨
파일이 속한 패키지 확인
[user@centos7 ~]# rpm -qf /etc/my.cnf mysql-community-server-5.7.24-1.el7.x86_64