Linux: programatically setting a permanent environment variable

Posted by Richard on Stack Overflow See other posts from Stack Overflow or by Richard
Published on 2010-05-23T13:52:56Z Indexed on 2010/05/23 14:00 UTC
Read the original article Hit count: 151

Hello All,

I am writing a little install script for some software. All it does is unpack a target tar, and then i want to permanently set some environment variables - principally the location of the unpacked libs and updating $PATH. Do I need to programmatically edit the .bashrc file, adding the appropriate entries to the end for example, or is there another way? What's standard practice?

Thanks

© Stack Overflow or respective owner

Related posts about bash

Related posts about installer