![](https://seccdn.libravatar.org/avatar/45a14b0557bc352308ce3b4aab5d3c6e.jpg?s=120&d=mm&r=g)
Hi! I am trying to build an rpm package. The problem is, that I do not want the newer version to completely overwrite the previous config files. What do I have to include into the spec file and wherež to save the old files as old.file.rpmsave or old.file.rpmorig ? THX in advance! Bostjan -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
![](https://seccdn.libravatar.org/avatar/3cbac7dcf1f56f37fafd539ab1534b4b.jpg?s=120&d=mm&r=g)
Hi, On Sat, Mar 25 2000 at 19:17 +0100, Bostjan Muller wrote:
I am trying to build an rpm package. The problem is, that I do not want the newer version to completely overwrite the previous config files. What do I have to include into the spec file and wherež to save the old files as old.file.rpmsave or old.file.rpmorig ?
Put a `%config' right before the file name in the spec's file listing. For instance like this: %files /usr/bin/jmacs /usr/bin/joe /usr/bin/jpico /usr/bin/jstar /usr/bin/rjoe /usr/bin/termidx %config /usr/lib/jmacsrc %config /usr/lib/joerc %config /usr/lib/jpicorc %config /usr/lib/jstarrc %config /usr/lib/rjoerc %doc /usr/man/man1/joe.1.gz %doc INFO %doc LIST %doc README %doc TODO %doc VERSION %doc copying Ciao, Stefan -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
![](https://seccdn.libravatar.org/avatar/45a14b0557bc352308ce3b4aab5d3c6e.jpg?s=120&d=mm&r=g)
THX that was it! Bostjan * On 25-03-00 at 22:02 Stefan Troeger (stefan.troeger@wirtschaft.tu-chemnitz.de) wrote: +----Here quoted text begins----+
Hi,
On Sat, Mar 25 2000 at 19:17 +0100, Bostjan Muller wrote:
I am trying to build an rpm package. The problem is, that I do not want the newer version to completely overwrite the previous config files. What do I have to include into the spec file and wherež to save the old files as old.file.rpmsave or old.file.rpmorig ?
Put a `%config' right before the file name in the spec's file listing. For instance like this:
%files /usr/bin/jmacs /usr/bin/joe /usr/bin/jpico /usr/bin/jstar /usr/bin/rjoe /usr/bin/termidx %config /usr/lib/jmacsrc %config /usr/lib/joerc %config /usr/lib/jpicorc %config /usr/lib/jstarrc %config /usr/lib/rjoerc %doc /usr/man/man1/joe.1.gz %doc INFO %doc LIST %doc README %doc TODO %doc VERSION %doc copying
Ciao, Stefan
-- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/ +----and here the quote ends----+
-- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
![](https://seccdn.libravatar.org/avatar/b72418bac675a1b6b9db02414c918473.jpg?s=120&d=mm&r=g)
Hi, On Sat, 25 Mar 2000, Stefan Troeger wrote:
Put a `%config' right before the file name in the spec's file listing.
Or even better: You can add "noreplace", so RPM won't replace the configuration file, if it has been changed: %config(noreplace) /etc/some_configfile This is helpful, if you know that the format of the config file has not been changed to the previous versions. Bye, LenZ -- ------------------------------------------------------------------ Lenz Grimmer SuSE GmbH mailto:grimmer@suse.de Schanzaeckerstr. 10 http://www.suse.de/~grimmer 90443 Nuernberg, Germany -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
participants (3)
-
grimmer@suse.de
-
neonatus@gimp.thz.net
-
stefan.troeger@wirtschaft.tu-chemnitz.de