On Thu, Mar 03, 2005 at 12:06:41PM -0500, Lehman, Jason (Registrar's Office) wrote: > How do I copy the file if it doesn't exist and not overlay it if it does > exists? > > Or does rpm automatically handle that for you when you are do a > > install -m 755 start_apache $RPM_BUILD_ROOT%{_sysconfdir}/start_apache Uhh... when you install in $RPM_BUILD_ROOT the file will *never* exist, as that is done at *build* time and $RPM_BUILD_ROOT is an initially empty, temporary directory. I think you're mixing up things. The "%install" is done at build time, at install time rpm unpacks the archive in an "intelligent" way, like honouring %config(noreplace) tags that are preserved in the rpm archive. -- -- Jos Vos <jos@xxxxxx> -- X/OS Experts in Open Systems BV | Phone: +31 20 6938364 -- Amsterdam, The Netherlands | Fax: +31 20 6948204 _______________________________________________ Rpm-list mailing list Rpm-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/rpm-list