[Rpm-maint] sed a file on rpm install - where in the spec?

Marc Haisenko haisenko at comdasys.com
Fri Feb 29 14:52:05 UTC 2008

On Friday 29 February 2008, Tom Brown wrote:
> Hi
> As part of an rpm that i am making during the install i would like to 
> sed a file, in this case sendmail.cf. I thought this went in the 
> %install however even though the rpm builds it seems this sed is 
> executed on the machine thats building the rpm and not on th box that 
> the rpm get installed onto.
> Can anyone offer any tips as google is not showing me the way.
> thanks

You want the %post section.

Marc Haisenko

Comdasys AG
Rüdesheimer Str. 7
80686 München

Tel.: +49 (0)89 548 433 321

More information about the Rpm-maint mailing list