Re: Questions on RPM

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

 



On Wed, 2007-05-30 at 13:33 +0800, Rayapudi Sandeep-mgb376 wrote:
> Hi,
> 
> I am a newbie using RPM. Can anyone answer following quiries
> 
> - 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? 
> 

why would you want to do this? this is not something i would do using
rpm, i would prefer that the application being installed complained
about needing certain environment variables set, and let users add such
variables to rc scripts of the shells they run in their home
directories. it would be difficult to cater for all shells and may even
be an annoyance for some users.

> - And will I be able to undo these exports when I do uninstall?
> - 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?

listing all the rpms you want to install on the command like could work.
ie rpm -i <package> <package> <package> ...

this is also better suited for tools like yum, where you setup a
repository, configure clients to fetch and resolve dependencies from the
repo, and let it do the work of finding and installing dependencies.

if you are talking about the context of building packages, rpmbuild in
many cases does a fine job of finding dependencies of a package, the
ones you need to add would be tools for handling %pre or %post scripts,
like /bin/sh etc.

> 
> - Does RPM work on all shells (bash, korn, etc,.)?
> 
> Thnx, 
> Sandeep
> 
> _______________________________________________
> Rpm-list mailing list
> Rpm-list@xxxxxxxxxx
> https://www.redhat.com/mailman/listinfo/rpm-list
-- 
Hiren Patel

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This e-mail and its contents are subject to the Telkom SA Limited
e-mail legal notice available at 
http://www.telkom.co.za/TelkomEMailLegalNotice.PDF
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

_______________________________________________
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