Installation of Root 6 in place of Root 5

Hi
I have recently installed root 5 on my ubuntu 14.04 machine, with the help of a step by step tutorial on youtube. But later I found that all the tutorials and slides on the official root website (https://indico.cern.ch/event/395198/) are based on the root 6 series.
It would be really helpful if someone could write out a step-by-step process for uninstalling root 5 followed by installation of root 6.
Thanks.

If you built ROOT 5 yourself (from source code) then simply run “make uninstall” (in the subdirectory in which you built it).
If you installed the standard Ubuntu’s ROOT 5 version then “completely remove” / “purge” (i.e. “remove with any associated configuration files”) all ROOT 5 related packages, i.e. execute “sudo apt-get purge root-system* root-plugin* libroot*” (afterwards check that the “/usr/lib/i386-linux-gnu/root5.34” and the “/usr/lib/x86_64-linux-gnu/root5.34” subdirectories disappeared completely).

Note that you can still access online ROOT 5.34 tutorials, ROOT 5.34 Class Index, ROOT 5.34 Reference Guide, ROOT 5.34 User’s Guide.

In Ubuntu 14.04, you can build ROOT6 from source as follows:

[code]
sudo apt-get install git dpkg-dev make g++ gcc binutils libx11-dev libxpm-dev
libxft-dev libxext-dev
sudo apt-get install gfortran libssl-dev libpcre3-dev
xlibmesa-glu-dev libglew1.5-dev libftgl-dev
libmysqlclient-dev libfftw3-dev cfitsio-dev
graphviz-dev libavahi-compat-libdnssd-dev
libldap2-dev python-dev libxml2-dev libkrb5-dev
libgsl0-dev libqt4-dev ccache

sudo mkdir /opt/root6
sudo chown myusername /opt/root6
#No need to use sudo anymore.
#Alternatively, just do mkdir /home/myuser/root6 and replace below all /opt/root6
cd /opt/root6
git clone http://root.cern.ch/git/root.git root6_src
cmake -Droofit=ON -Dhttp=ON -Dccache=ON /opt/root6/root6_src/
cmake --build .
#or make -j8 instead
source /opt/root6/bin/thisroot.sh
#Or add the previous line in your ~/.bashrc
root --notebook[/code]

See also root.cern.ch/building-root