Re: About creating .rpmnew files

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

 



On 10/19/05, Devrim GUNDUZ <devrim@xxxxxxxxxx> wrote:
>
> Hi,
>
> I have a question regarding .rpmnew files.
>
> 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

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

_______________________________________________
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