Re: Interactive installation of rpm package

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

 



On 1/26/06, Jeff Johnson <n3npq.jbj@xxxxxxxxx> wrote:
>
> On Jan 26, 2006, at 9:32 AM, Hasan YAVUZ wrote:
>
> > OK, I know this command "rpm -Uvh --relocate /old=/new ... "
> > But I would you like to get back the prefix path in pre-
> > installation phase, and for that  the only  possibility is the
> > interactive installation.
> > Do you know may be where I found the special documentation on
> > interactive rpm mode,
>
> There's no "special documentation on interactive rpm mode" because
> the primary focus of rpm packaging is on a batch mode, unattended,
> *non-interactive*, install.
>
> That being said, you can try interacting with the user in rpm
> scriptlets if you want.
>
> At worst, you will have to patch rpm to leave stdin open. I've
> forgotten whether rpm
> closes stdin (or not) while running scriptlets.
>
It does.  Unless someone changed it recently.  I've been in
psm::runScript() far to many times.

Cheers...james
> 73 de Jeff
>
> > Thanks
> >
> > Jeff Johnson wrote:
> >
> >>
> >> On Jan 26, 2006, at 9:04 AM, Hasan YAVUZ wrote:
> >>
> >>> Hello,
> >>>
> >>> Is it possible to build an interactive rpm package.
> >>
> >>
> >> It's possible, but strongly discouraged. I'll leave that to
> >> others ;-)
> >>
> >>> That means, I would like build a relocatable package but I'd
> >>> like  find a way for don't give the path of installation as --
> >>> prefix  (pathname)
> >>> I'd like to answer a questions as "Enter the path of package
> >>> where  would you like to install: ?" in pre-installation phase
> >>> and after  the rpm package install in the path given at the
> >>> questions.
> >>> Is it possible to install rpm package with interactive mode.
> >>>
> >>
> >> Instead, invoke rpm as
> >>     rpm -Uvh --relocate /old=/new ...
> >> to specify the relocation path for files.
> >>
> >> If there are other occurences of the relocated path in, say,
> >> config  files, then
> >> you will need to change those files in %post, or -- even better --
> >> patch
> >> the program to be as independent of installed (and possibly
> >> relocated)
> >> path as possible.
> >>
> >> hth
> >>
> >> 73 de Jeff
> >>
> >> _______________________________________________
> >> 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
>

_______________________________________________
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