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

Re: About creating .rpmnew files




Hi,

On Wed, 19 Oct 2005, James Olin Oden wrote:

On one of my RPMs, we just added a new file , say /path/to/file, among
installed files. I want to be sure that if that file already exists, our
RPM will create a .rpmnew file instead of overwriting it.

Could you please give me a clue?

Sure,

In your %files use the %config(noreplace) attribute:

   %config(noreplace) /path/to/file

Thanks a lot. That did it.

BTW, While looking for details for noreplace, I found another macro:

%ghost

What's that exactly?

Regards,

--
Devrim GUNDUZ
Kivi Bilişim Teknolojileri - http://www.kivi.com.tr
devrim~gunduz.org, devrim~PostgreSQL.org, devrim.gunduz~linux.org.tr
                      http://www.gunduz.org

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