Well, first you should check the link provided by @yuyichao.
I am just posting one solution to answer your question (on a *nix machine):
- Clone the repository.
git clone https://github.com/JuliaLang/Julia.git ~/julia-repo.
This command will clone the repository to the
julia-repo folder in your user’s home folder.
cd ~/julia-repo, checkout your favourite tag as a new branch.
git checkout -b install-0.5 v0.5.2
This will create a new branch named
install-0.5 from the tagged commit
v0.5.2, which is the latest stable patch in
- Follow the steps on the Julia website to install the corresponding version.
- Clean the workspace by issuing
make cleanall or similar command. Once you are in
~/julia-repo folder, you can
git clean -fdx to (force) clean all the untracked files and folders, i.e., the dependencies. For more info on what the
-fdx switch means, please issue
git help clean.
- You can keep the branch, or simply remove it if you want:
git branch -d install-0.5.
- Some time after, when you would like to fetch the new updates from the repo, do the following:
git checkout master
git fetch --all --prune
git merge --ff-only origin/master # if this results in a conflict, you are doing something wrong.
# if that is the case, issue first the below command prior to git merge
git reset --hard --
Follow steps 2-5 for other versions such as
master (for the latest (probably unstable) release), etc., as in
git checkout -b latest master
# git checkout -b install-0.6 v0.6.0-rc3
I hope this solves your problem.
P.S: You can find all the tags by issuing
git tag inside