# rpm -qc PACKAGE_NAME
lists the configuration files contained in that RPM package, in a Red Hat-like OS. What's it's equivalent command in an Ubuntu/Debian-based OS?
# rpm -qc PACKAGE_NAME
lists the configuration files contained in that RPM package, in a Red Hat-like OS. What's it's equivalent command in an Ubuntu/Debian-based OS?
Edit:
You can use the following command:
Alternatively you can convert the .rpm to a .deb file. You will need to run this command to install alien and other necessary packages:
To convert a package from rpm to debian format, use:
Once in .deb format you should be able to open/extract with archive utility. If you want to install the newly converted .deb to your system run:
If you want to use the output for a script and need this to output just the configuration files, I'd try
dpkg-query
like in the answer from bleeves.If you don't mind if there's extra information however,
dpkg --status PACKAGE_NAME
is a simpler choice. It will print pretty much all the information there is about an installed package. (The exception is the complete list of installed files for that package. But that is available viadpkg --listfiles PACKAGE_NAME
.) So it's an equivalent to mostrpm -q
commands for an installed package, at least when meant for human consumption. In this case, you're looking for theconffiles
section.Example output: