Re: Using rpm to patch several conf files

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

 



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@xxxxxxxxxxxxxxxxxxxxxxxxx
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@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/rpm-list

[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux