Re: How can i enter value during rpm -i and use them during the postinstall process?

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

 



On Mon, 8 Mar 2004, Baz wrote:

> Paul, James and all, thank you for your reply.
> 
> 1. I understand that I can use prefix to define the installation location. I
> have done that in my spec file.
> 
> 2. I would like to do the following on top of using --prefix for locating
> the installation directory,
> 
> "rpm -i software_a.rpm STRING1 STRING2"
> 
> 3. Could you please explain your need more clearly and reasoning behind it.
> Remember rpm installs are meant to be non-interactive and can be done via
> the
> api/depsolver bypassing the command line.
> 
> I would like to be able to doing something in the postinstall section of the
> spec file such as:
> 
> "echo $STRING1"
> "echo $STRING2"
>
Completely understand.  Its just not supported with the cli or the api
at the moment.  
 
> Of course, I will do more than just echo, but having the abilities to do
> echo meaning I can use those strings however I want during the postinstall
> process. Essentially, STRING1 can be a servername, and the postinstall
> section of the spec file needs to process this servername or start processes
> with this string.
> 
Yeah, that is what I thought from your first email.

> 4. James' reply covered this thoroughly please reread, currently passing
> parameters to scriptlets is unspupported.  Bleeding edge work is being done
> one
> this but you can not do this at the moment with any released version of rpm.
> 
> So, nobody actually pass parameters, values while doing "rpm -i"??? How does
> one able to do what I want to do in their installation? I am sure that it is
> not uncommon to do it, am i right?
>
No, no one does this in a straight forward manner like you propose, 
because it just is not supported.  Hopefully will be in the future (read 
six months at best, and probably still not in your favorite distro).  In 
the mean time you have to be creative, and hack away.

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