This snap is intended to provide an easy-to-install package of the ROOT framework for home users and students. This package is ideal for users who are looking for an easy installation process that is consistent across systems without the need for integration with other frameworks, IDE's, or external packages. For these use-cases, you may want to take a look at other available builds of ROOT at https://root.cern/install/
ROOT is built using the C++17 standard, and it comes bundled along with Python 3.8/PyROOT and Jupyter Notebook / JupyROOT. NumPy, SciPy, Pandas, Matplotlib, Scikit-Learn and Tensorflow/Keras are included with the Python environments.
Snaps are container packages for easy application deployment, designed to be consistent and reliable across different host distributions. They additionally impose some strong sandboxing for security. One caveat of this sandboxing is that this package can only read/write to your $HOME directory, or via specific network protocols. It is highly advised that you place all your data files in your $HOME directory to be accessible.
Because snaps are containers and don't affect the host system, using PyROOT with import ROOT will not work in a system Python shell. Users are encouraged to use the command pyroot to access the containers' Python shell, where import ROOT would become available. Scripts can be passed to pyroot to be executed in PyROOTs context, E.G, pyroot -i $(root-config --tutdir)/pyroot/fillrandom.py, or put in the scripts shebang. E.G #!/snap/bin/pyroot
JupyROOT can be accessed by running root --notebook.
For user convenience, application entries for ROOT and PyROOT will be placed into the systems start menu by default.
Swap out openSUSE_Leap_15.2 for openSUSE_Leap_15.1, openSUSE_Leap_15.0, or openSUSE_Tumbleweed if you’re using a different version of openSUSE.
With the repository added, import its GPG key:
sudo zypper --gpg-auto-import-keys refresh
Finally, upgrade the package cache to include the new snappy repository:
sudo zypper dup --from snappy
Snap can now be installed with the following:
sudo zypper install snapd
You then need to either reboot, logout/login or source /etc/profile to have /snap/bin added to PATH.
Additionally, enable and start both the snapd and the snapd.apparmor services with the following commands: