[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: Questions on RPM
- From: Valery Reznic <valery_reznic yahoo com>
- To: RPM Package Manager <rpm-list redhat com>
- Subject: Re: Questions on RPM
- Date: Wed, 30 May 2007 04:58:43 -0700 (PDT)
--- Murilo Opsfelder Araújo <mopsfelder gmail com>
wrote:
> On 5/30/07, Rayapudi Sandeep-mgb376
> <rsandeep motorola com> wrote:
> > Hi,
>
> Hello Rayapudi
>
> > I am a newbie using RPM. Can anyone answer
> following quiries
>
> I'm a newbie too ;)
>
> > - I want to update enviornment variables when I
> install an RPM. When I
> > include some 'exports' in spec file, they are
> local to that shell. Is there
> > any way I can export variables globally?
>
> I think you can do a
Another option is add to your package file(s)
/etc/profile.d/whatever.sh
/etc/profile.d/whatever.csh
This way you haven't write any scripts in the
postinstall preuninstall and also support users
with csh-like shells
Valery
>
> echo 'MYGLOBALVAR="somevalue"' >> /etc/bashrc
>
> in the % section to export your variable for bash
> users.
>
> > - And will I be able to undo these exports when I
> do uninstall?
>
> Perhaps a
>
> sed -i.orig -e '/MYGLOBALVAR/d' /etc/bashrc
>
> in the %preun section could solve the problem.
>
> > - Can we chain installation of RPMs. Suppose, my
> application needs
> > installation of JDK rpm along with actual RPM.
> Where can I include commands
> > to install JDK?
>
> You can include the JDK package into Requires:
>
> BuildRequire: java-jdk
>
> Depending your box, this name can be changed.
>
> > - Does RPM work on all shells (bash, korn, etc,.)?
>
> Well, I've never tested this situation. You can test
> and send us the result ;)
>
> > Thnx,
> > Sandeep
>
> I really don't know if I made mistakes or if there
> is other way to do
> that. Please, send us other suggestions.
>
> Thanks.
>
> _______________________________________________
> Rpm-list mailing list
> Rpm-list redhat com
> https://www.redhat.com/mailman/listinfo/rpm-list
>
____________________________________________________________________________________
Now that's room service! Choose from over 150,000 hotels
in 45,000 destinations on Yahoo! Travel to find your fit.
http://farechase.yahoo.com/promo-generic-14795097
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]