[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: Using rpm to patch several conf files
- From: Tim Mooney <mooney dogbert cc ndsu NoDak edu>
- To: rpm-list redhat com
- Subject: Re: Using rpm to patch several conf files
- Date: Mon, 24 Nov 2003 15:33:03 -0600 (CST)
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
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]