<pre>
> Hi All,
>
> Is there a workaround to use rpm -U option with
> linux rpm plugins ? Instead of the default option
> of rpm -i . IHac requesting for a way to use -U
> option:
>
> Any pointers/ideas appreciated:
> Regards
> --n1core
Doesn't seem that the component type is designed to be extended / customized in this way.
A possibility is to create a new component type that extends this component type and overrides the 'default' install block. Instead of hardcoding the argument you may want to use a component variable to parameterize the rpm install option, so that you can override it without having to create a new component type.
You'd perhaps want to include the component variable exporterClassName definition in the subtype (just cut & paste it), to ensure that the new component type is browsable.
If push becomes shove, you can just copy the component RPM CT to another folder, edit it to parameterize the argument and create a new component type off this component.
Hope this helps.
</pre>
Hi n1core,
Couple of pointers to documentation that might help you with plug-in development:
- Discussion on considerations for extending plug-ins:
http://docs.sun.com/app/docs/doc/819-4448/6n6jn4h1j?a=view
- XML schema description for Plug-in descriptor:
http://docs.sun.com/app/docs/doc/819-4451/6n6jq02p1?a=view
- Linux Plug-in doc:
http://docs.sun.com/app/docs/doc/819-4885
Hope this helps...
SUN provided us with a com.sun.linux_2.1.jar plugin.
That plugin replaces the hardcoded "rpm" command parameters with
setable variables and a defalult of "-U". That way all rpm
parameters can be used, like the "force" argument or the -U can be replaced with the more restritive "-r".
As SUN for this new plug-in.
Details in :case 65218823 (N1SPS Linux rpm plugins with -U option vs -I )
Peter Costello AT&T