Re: taking control of another package's file

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

 



On 2/9/06, Jos Vos <jos@xxxxxx> wrote:
> On Wed, Feb 08, 2006 at 09:50:35PM -0800, Joe Van Dyk wrote:
>
> > I'm creating an RPM that creates a new /etc/auto.master file (for
> > automounting directories).
> >
> > Currently, the autofs package owns this file.  So when I try to
> > install my RPM that overwrites /etc/auto.master, it complains about a
> > conflict between my RPM and the autofs RPM.
> >
> > What's the correct resolution here?
>
> You can consider using %trigger(un) scripts, they were designed for
> inter=package pre/post (un)install scripts.  Note that the use of
> trigger scripts does not comply with the LSB, but it works fine and
> if the other package gets upgraded (e.g., new services file), the
> script is running again.  Of course, you have to write that scripts
> very carefully, idempotent, etc.

So, to install my RPM that installs a file over another RPMs file, the
user has to --force the rpm install?

Joe

_______________________________________________
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