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:

> Matthew,
> 
> In that case, how can I achieve the followings:
> 
> 1. How can one install a rpm package and would like to change and set some
> values such as "servername"? Only by prompting users during postinstall
> process? Please enlight me in details. I am surprised that there are nobody
> doing it in rpm...
>
rpm explicitly does not support interactive installs (it closes stdin
before running a scriptlet...you don't get any more explicit than that).
Is this right thing to do?  For install programs, and distribution 
makers it mostly is.  Are there ways to allow interactive installs and
still meet distro/installer needs; yeah, solaris packaging does it just
fine.  Is that a high priority for anyone working on rpm right now 
as far as I can tell; not at all, because there are much more important
problems to solve (IMHO).  OTH, know one is stopping anyone from 
thinking through a good implementation like solaris packaging has (IMHO)
and patching rpm to support such thing (other than it would not be easy,
and addoption even harder).
 
> 2. If so, then is there a way to do it silently just like what I have
> described? One command with additional strings and pass those strings into
> the postinstall process? e.g. "rpm -i software_a.rpm STRING1 STRING2"???
> 
> 3. Can this: "rpm -i software_a.rpm STRING1 STRING2" be done?
>
No.  See previous emails...james 
> Thanks
> 
> Barry
> 
> 
> ----- Original Message ----- 
> From: "Matthew Miller" <mattdm@xxxxxxxxxx>
> To: <rpm-list@xxxxxxxxxx>
> Sent: Monday, March 08, 2004 7:59 AM
> Subject: Re: How can i enter value during rpm -i and use them during the
> postinstall process?
> 
> 
> > On Mon, Mar 08, 2004 at 07:51:11AM -0800, Baz wrote:
> > > 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.
> >
> > If every RPM starts having requirements for custom command-line options,
> how
> > is an installer program supposed to know what options it ought to feed to
> > which package? This is really asking for trouble.
> >
> > > 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?
> >
> > In order: right; do it at runtime instead of at install time; zero =
> > extremely uncommon.
> >
> >
> > -- 
> > Matthew Miller           mattdm@xxxxxxxxxx        <http://www.mattdm.org/>
> > Boston University Linux      ------>                <http://linux.bu.edu/>
> >
> >
> > _______________________________________________
> > Rpm-list mailing list
> > Rpm-list@xxxxxxxxxx
> > https://www.redhat.com/mailman/listinfo/rpm-list
> >
> 
> 
> 
> _______________________________________________
> Rpm-list mailing list
> Rpm-list@xxxxxxxxxx
> https://www.redhat.com/mailman/listinfo/rpm-list
> 


_______________________________________________
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