# Easy way to update ROOT?

**URL:** <https://root-forum.cern.ch/t/easy-way-to-update-root/40348>\
**Category:** ROOT\
**Created:** [July 10, 2020, 5:13am UTC](https://root-forum.cern.ch/t/easy-way-to-update-root/40348 "2020-07-10T05:13:50Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![haolinli](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/h/ad7895/32.png) [@haolinli](https://root-forum.cern.ch/u/haolinli)\
**Post date:** [July 10, 2020, 5:13am UTC](https://root-forum.cern.ch/t/easy-way-to-update-root/40348/1 "2020-07-10T05:13:51Z")

</div>

Hi,  
I writing to ask whether there is any simple way to keep track of the latest ROOT update.  
For example, I build ROOT-6 20/04 several month ago from the source code with CMake. What would be the best way to update to version 6.22/00 ?

Thanks

* * *

_Please read [tips for efficient and successful posting](https://root-forum.cern.ch/t/tips-for-efficient-and-successful-posting/28292) and [posting code](https://root-forum.cern.ch/t/posting-code-read-this-first/28293)_

_ROOT Version:_ 6.20/04  
_Platform:_ ubuntu 18.04  
_Compiler:_ gcc-7.5.0

* * *

---

<div class="post-metadata">

**Author:** ![bellenot](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/bellenot/32/29217_2.png) [@bellenot](https://root-forum.cern.ch/u/bellenot)\
**Post date:** [July 10, 2020, 6:17am UTC](https://root-forum.cern.ch/t/easy-way-to-update-root/40348/2 "2020-07-10T06:17:05Z")

</div>

Maybe [this post](https://root-forum.cern.ch/t/how-do-i-actually-install-root/40014/3) can give you some hints, in particular:

> [@How do I actually install ROOT?](https://root-forum.cern.ch/t/how-do-i-actually-install-root/40014/3):
>
> _Very soon_ we will have an even simpler method (download a root.deb package and `apt install root.deb` ). Stay tuned

---

<div class="post-metadata">

**Author:** ![couet](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/couet/32/12037_2.png) [@couet](https://root-forum.cern.ch/u/couet)\
**Post date:** [July 10, 2020, 7:08am UTC](https://root-forum.cern.ch/t/easy-way-to-update-root/40348/3 "2020-07-10T07:08:22Z")

</div>

There is also an [Install page](https://root.cern/install/) on the ROOT web site

---

<div class="post-metadata">

**Author:** ![amadio](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/amadio/32/12562_2.png) [@amadio](https://root-forum.cern.ch/u/amadio)\
**Post date:** [July 10, 2020, 10:58am UTC](https://root-forum.cern.ch/t/easy-way-to-update-root/40348/4 "2020-07-10T10:58:51Z")

</div>

I’ve created some unofficial DEB packages for Ubuntu and Debian to make it easier for users to install.

You can install it like shown below and no setup is required to use ROOT after that.

```auto
$ wget https://cern.ch/amadio/root/root_6.22.00_ubuntu18_amd64.deb
$ sudo apt install ./root_6.22.00_ubuntu18_amd64.deb

```

If you later want to uninstall:

```auto
$ sudo apt remove root && sudo apt autoremove

```

Cheers,

---

<div class="post-metadata">

**Author:** ![eguiraud](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/eguiraud/32/32217_2.png) [@eguiraud](https://root-forum.cern.ch/u/eguiraud)\
**Post date:** [July 10, 2020, 11:53am UTC](https://root-forum.cern.ch/t/easy-way-to-update-root/40348/5 "2020-07-10T11:53:02Z")

</div>

Hi,  
I’ll try to provide a general perspective on the matter.

There are several ways ROOT can be installed on ubuntu 18.04, all listed at [https://root.cern/install](https://root.cern/install) as @couet suggested. What’s the method to upgrade an existing installation depends on the method you installed ROOT with in the first place.

For example, if ROOT installed via a package manager such as conda or apt (e.g. using @amadio’s .deb package) upgrading is just a matter of telling the package manager to install the newer version – that should also remove the old one as the package manager knows it’s a conflict. At worst, you’ll have to tell the package manager to uninstall ROOT and then install the newer version, which is maybe two commands instead of one. Still manageable.

Compiling ROOT from source like you did is the best way to customize ROOT, but then you have the responsibility to manage that ROOT installation. If you have not installed ROOT in system directories such as `/usr/local` after compilation (you can check where your ROOT installation resides with `which root`, for example), then upgrading should be a matter of removing your current installation (e.g. removing the build/install directory) and compiling again. If you did install ROOT in system directories, you have to manually remove it from there.

As using a package manager takes care of a lot of that complexity, I would suggest installing ROOT as a conda package or a .deb package. If you need special compilation options or tweaks, then you can compile ROOT yourself, and manage where ROOT is installed as well as removals manually.

Also: we are working on an official .deb package based on @amadio’s work, so soon we will have a one-liner apt invocation that installs ROOT and makes it easy to manage the same way as you manage any other package on Ubuntu or Debian. Work in progress 😄

Hope this clarifies things a bit!  
Cheers,  
Enrico

---

<div class="post-metadata">

**Author:** ![system](https://root-forum.cern.ch/uploads/default/original/3X/e/f/efe4f24398fd8ffeb76bccb6ecc46d9d9c003376.png) [@system](https://root-forum.cern.ch/u/system)\
**Post date:** [July 24, 2020, 11:53am UTC](https://root-forum.cern.ch/t/easy-way-to-update-root/40348/6 "2020-07-24T11:53:04Z")

</div>

Closed on July 24, 2020, 11:53am UTC

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
