[CentOS] How to extract one file from rpm using yum?

Thu Jan 31 18:29:31 UTC 2013
Robert Moskowitz <rgm at htt-consult.com>

On 01/31/2013 11:40 AM, Reindl Harald wrote:
>
> Am 31.01.2013 16:55, schrieb Robert Moskowitz:
>> I want to get the original version of /etc/clamd.d/amavis.conf from the
>> amavisd-new rpm to get the defaults to submit a bug report.  I could not
>> figure out how to do this, so I did a reinstall, but it did not replace
>> this file (whatprovides says it comes from this rpm).
>>
>> Is there a way to extract just the one file, and better yet, place it
>> elsewhere than its regular destination?
> seems you are very new in the rpm world

Actually very old to it.  I use to do this stuff 10 years ago and my 
brain just ain't what it use to be.  Use to do my own builds for a 
number of apps, but doubt I could do a build now!

>
> THANKFULLY a reinstall does not touch modified config-files
> BUT you get a warning from yum that whatever.conf was installed
> as watever.conf.rpmnew
>