[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: trigger Fu
- From: "James Olin Oden" <james oden gmail com>
- To: "RPM Package Manager" <rpm-list redhat com>
- Subject: Re: trigger Fu
- Date: Tue, 17 Oct 2006 08:50:22 -0400
On 10/16/06, Al Pacifico <adpacifico users sourceforge net> 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
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]