Wednesday, November 30, 2016

How to find what configuration files are associated with a specific installed package using rpm

To check what configuration files are associated with a specific package that is already installed on your system using rpm command, use the syntax as written below.

rpm -qc package_name

Here package_name is any package that is already installed on your system.



Example: Find the associated configuration files of Apache HTTP server

To check the configuration files that are associated with the package httpd, the Apache HTTP server, run the following command.

rpm -qc httpd
/etc/httpd/conf.d/autoindex.conf
/etc/httpd/conf.d/userdir.conf
/etc/httpd/conf.d/welcome.conf
/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/logrotate.d/httpd
/etc/sysconfig/htcacheclean
/etc/sysconfig/httpd


Tested on: CentOS 7

No comments:

Post a Comment