Installation on Ubuntu 20.04 TLS

On Linux systems we use a binary distribution for ROOT installations.

External Dependencies Installation

Generally we follow the installation rules for ROOT described here:

For our course it is sufficient to install the “Required packages” only via:

sudo apt-get install dpkg-dev cmake g++ gcc binutils libx11-dev libxpm-dev \
libxft-dev libxext-dev python openssl-dev

Atom Installation

wget -qO - | sudo apt-key add -
sudo sh -c 'echo "deb [arch=amd64] any main" > /etc/apt/sources.list.d/atom.list'
sudo apt-get update
sudo apt-get install atom

Visit for more information about Atom.

ROOT Installation

The ROOT installation is required for some exercises in this tutorial.

The tar files with precompiled ROOT binaries for Ubuntu-20.04 can be downloaded from

curl -SLO

We will install both ROOT and Geant4 into /usr/local directory:

sudo tar zxf root_v6.22.02.Linux-ubuntu20-x86_64-gcc9.3.tar.gz -C /usr/local/
sudo chown -R `id -un`:`id -gn` /usr/local/root
chmod +x /usr/local/root/bin/thisroot.*

ROOT is installed in relocatable mode. To use ROOT, you must set its environment sourcing the script from the ROOT installation directory:

source /usr/local/root/bin/

Visit for more information about ROOT.

Test ROOT Installation

Start the ROOT interactive session:

$ root
  | Welcome to ROOT 6.22/02               |
  | (c) 1995-2020, The ROOT Team; conception: R. Brun, F. Rademakers |
  | Built for linuxx8664gcc on Aug 17 2020, 12:46:52                 |
  | From tags/v6-22-02@v6-22-02                                      |
  | Try '.help', '.demo', '.license', '.credits', '.quit'/'.q'       |

and type .demo after the ROOT prompt:

root [0] .demo

You will see the ROOT demo bar and can run some demos by clicking on the demo menu. You need to go from up to down in the menu, some demos depend on the previous demos results.

To quit ROOT type .q on the ROOT prompt

root [1] .q

Taking a break from ROOT? Hope to see you back!