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

John Doe jdmls at yahoo.com
Thu Jan 31 16:36:33 UTC 2013

From: Robert Moskowitz <rgm at htt-consult.com>

> 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?

You could also just have renamed your conf file temporarily, 
reinstalled, moved the default conf file and renamed back 
your conf file...


More information about the CentOS mailing list