Skip to main content

Thread: How to have a Local Install have Precedence Over a System Wide Install?


i have shell account on linux server (running ubuntu 8.04) user level permissions (but no root priveleges). system has git 1.5.x installed. wish run more current version of git. can compile source , install in home directory git commands invoke local, more current install, rather older system wide installation of git.

how go doing this?

thanks.

when type command, linux searches path command.

find current path, enter:
code:
echo ${path}
you want add new git folder front of path (because linux searches path left right).

let's assume new folder /home/haziz/newgit purposes of illustration.

add new folder front of path, use following command:
export path="/home/haziz/newgit:${path}"

put command? well, if want when using terminal, edit file ~/.bashrc (note dot in name) , add command end. (you have close terminal , reopen it.) if want throughout session, not in terminal, edit file ~/.profile , add end. (you have log out , in again.)


Forum The Ubuntu Forum Community Ubuntu Official Flavours Support General Help [all variants] How to have a Local Install have Precedence Over a System Wide Install?


Ubuntu

Comments

Popular posts from this blog

How to set the order of FAQs instead of alphabetical

Thread: Get UK Keyboard working

how do I change the e-mail address for my merchant account