package doesn't have any files in /etc/, but mysql-server
Originally Posted by veeruk101
Is there any way using either yum (preferrably) otherwise rpm to easily get at an original configuration file?
A while back I put some effort into finding a way to do this. I found the repoquery
command (in the yum-utils package) that lists the contents of a package (even if not installed), but I have yet to find a command that will actually allow me to see one individual file in a package.
Of course, you can always download the rpm file itself from the repo (with wget
or a browser) and then use something like this to extract and compare a file. I don't know if I have the syntax right. I didn't run this command and I'm not very familiar with cpio.
rpm2cpio mysql-server*.rpm | cpio -i /etc/tempfiles.d/mysql.conf | diff - /etc/tempfiles.d/mysql.conf