0

In CentOS, there is this command rpm -qc packagenameto list all the configuration for a specific package.

[spiderman@MyFirstLinuxVM ~]$ rpm -qc sudo
/etc/pam.d/sudo
/etc/pam.d/sudo-i
/etc/sudo-ldap.conf
/etc/sudo.conf
/etc/sudoers

Is there any similar command in Ubuntu using aptor dpkg ?

muru
  • 193,181
  • 53
  • 473
  • 722
shaunx333
  • 79
  • 5
  • 1
    Does this answer your question? [What's the equivalent of rpm -qc PACKAGE\_NAME in Ubuntu?](https://askubuntu.com/questions/433810/whats-the-equivalent-of-rpm-qc-package-name-in-ubuntu) – muru Jul 15 '21 at 03:42
  • 1
    Installed app or not installed app? If installed, https://askubuntu.com/questions/281853/how-to-list-all-configuration-files-for-an-already-installed-package – Terrance Jul 15 '21 at 04:35

1 Answers1

0

I've used cat for finding config files. for example, lighttpd would look like this

cat /var/lib/dpkg/info/lighttpd.conffiles