Question on N1SPS Linux rpm plugins with -U option vs -I

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
[242 byte] By [n1core] at [2008-2-4]
# 1

<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>

aj at 2007-7-7 > top of java,Administration Tools,N1 Service Provisioning System...
# 2
Hi n1core,I had the same problem and extended the RPM CT of the Linux plugin to accept additional parameters both for installing and uninstalling. That is the only method to get what you want, as aj pointed out.Are you experienced with plugin development?-michti
michti at 2007-7-7 > top of java,Administration Tools,N1 Service Provisioning System...
# 3
Thanks Michti and aj . Your suggestions should point me to the right direction.... Though I have little experience on plugins development.-N1core
n1core at 2007-7-7 > top of java,Administration Tools,N1 Service Provisioning System...
# 4

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...

FrankDog at 2007-7-7 > top of java,Administration Tools,N1 Service Provisioning System...
# 5

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

peter_C at 2007-7-7 > top of java,Administration Tools,N1 Service Provisioning System...