[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Using rpm to patch several conf files



    To leave the task for the "post" section worked fine : ) Many thanks!

                                    Marcelo


----- Original Message ----- 
From: "Tim Mooney" <mooney@dogbert.cc.ndsu.NoDak.edu>
To: <rpm-list@redhat.com>
Sent: Monday, November 24, 2003 7:33 PM
Subject: Re: Using rpm to patch several conf files


> In regard to: Using rpm to patch several conf files, Marcelo Mercio
Dandrea...:
>
> >        Sorry if this a newbie question, Im a begginer on using RPMs.. I
> >        scanned the list archives but wasnt able to find information
> >        regarding it. Im trying to create a rpm to automatically patch
> >        several conf files...  On my rpm, I have the "original" conf file
> >        as it is installed by its package and a patch file to be applied.
> >        I can build and install the RPM with no problem at all, but the
> >        install part only works with the --force option, since I modify
> >        files referred by other packages... (file X from install of Y
> >        conflicts with file from package Z). Is there a way to avoid this
> >        ? Am I trying to use RPMs in a way it wasnt supposed to be used ?
>
> Probably.  You can avoid `--force' if you investigate the
> `--replace-files' option to RPM, though I have no idea whether that's any
> more "gentle" or not.
>
> Another possibility would be to not replace/overwrite the config files
> with your custom copies, instead you would install a set of "post-install,
> munge config files for our site" scripts, and have those scripts be
> responsible for tweaking/munging your config files.
>
> Tim
> -- 
> Tim Mooney                              mooney@dogbert.cc.ndsu.NoDak.edu
> Information Technology Services         (701) 231-1076 (Voice)
> Room 242-J6, IACC Building              (701) 231-8541 (Fax)
> North Dakota State University, Fargo, ND 58105-5164
>
>
> _______________________________________________
> Rpm-list mailing list
> Rpm-list@redhat.com
> https://www.redhat.com/mailman/listinfo/rpm-list
>




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]