Re: trigger Fu

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

 



On 10/16/06, Al Pacifico <adpacifico@xxxxxxxxxxxxxxxxxxxxx> wrote:
I'm casting about for suggestions about how to handle the following problem
in an RPM:

I want to:
1.  install just two files usually contained in another (gigantic) package
(that I would prefer not to install) provided that package isn't already
installed
2. make triggers remove the files if the other package is subsequently
installed and reinstall them if it subsequently removed.

You can do this, but you don't want the package to actually own the
files that the other packages so what you do is:

  1) have the files installed somewhere else.
  2) In your %post scriptlet cp the files to the location of the
other files if they
      package that normally owns them is not installed (i.e. use rpm
-q in your
      scriptlet).

As I think about you won't need a trigger at this point because the
package that really owns the files will simply overwrite them when it
is installed.

Is that easily done?
It looks easy to me.  Again I don't think the trigger is necessary...james

_______________________________________________
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