How To Install HepMC3 on Fedora 34

HepMC3 is C++ Event Record for Monte Carlo Generators C++ Event Record for Monte Carlo Generators

Introduction

In this tutorial we learn how to install HepMC3 on Fedora 34.

What is HepMC3

The HepMC3 package is an object oriented, C++ event record for High Energy Physics Monte Carlo generators and simulation, described in A. Buckley et al., “The HepMC3 Event Record Library for Monte Carlo Event Generators” Comput.Phys.Commun. 260 (2021) 107310, arxiv It is a continuation of the HepMC2 by M. Dobbs and J.B. Hansen described in “The HepMC C++ Monte Carlo event record for High Energy Physics” (Comput. Phys. Commun. 134 (2001) 41). In the version 3 the package has undergone several modifications and in particular, the latest HepMC3 series is a completely new re-write using currently available C++11 techniques, and have out-of-the-box interfaces for the widely used in HEP community ROOT and Python. HepMC3 3.2.4 1.fc34 x86_64 247 k HepMC3-3.2.4-1.fc34.src.rpm updates C++ Event Record for Monte Carlo Generators https GPLv3+ The HepMC3 package is an object oriented, C++ event record for High Energy Physics Monte Carlo generators and simulation, described in A. Buckley et al., “The HepMC3 Event Record Library for Monte Carlo Event Generators” Comput.Phys.Commun. 260 (2021) 107310, arxiv It is a continuation of the HepMC2 by M. Dobbs and J.B. Hansen described in “The HepMC C++ Monte Carlo event record for High Energy Physics” (Comput. Phys. Commun. 134 (2001) 41). In the version 3 the package has undergone several modifications and in particular, the latest HepMC3 series is a completely new re-write using currently available C++11 techniques, and have out-of-the-box interfaces for the widely used in HEP community ROOT and Python.

We can use yum or dnf to install HepMC3 on Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install HepMC3.

Install HepMC3 on Fedora 34 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

After updating yum database, We can install HepMC3 using dnf by running the following command:

sudo dnf -y install HepMC3

Install HepMC3 on Fedora 34 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

After updating yum database, We can install HepMC3 using yum by running the following command:

sudo yum -y install HepMC3

How To Uninstall HepMC3 on Fedora 34

To uninstall only the HepMC3 package we can use the following command:

sudo dnf remove HepMC3

HepMC3 Package Contents on Fedora 34

/usr/lib/.build-id
/usr/lib/.build-id/15
/usr/lib/.build-id/15/e4f7667445f54af97711929088fc52cd36d87e
/usr/lib/libHepMC3.so.3
/usr/share/licenses/HepMC3
/usr/share/licenses/HepMC3/COPYING
/usr/lib/.build-id
/usr/lib/.build-id/67
/usr/lib/.build-id/67/4710d6f20477e6596bcc15aa403b7a95ae4f81
/usr/lib64/libHepMC3.so.3
/usr/share/licenses/HepMC3
/usr/share/licenses/HepMC3/COPYING
/usr/lib/.build-id
/usr/lib/.build-id/83
/usr/lib/.build-id/83/4bfea09daa699cc1ab4ad3ba8e2633931e8181
/usr/lib64/libHepMC3.so.3
/usr/share/licenses/HepMC3
/usr/share/licenses/HepMC3/COPYING
/usr/lib/.build-id
/usr/lib/.build-id/b8
/usr/lib/.build-id/b8/05d18ab5cf44fcdff600c0cbb2fda7f0abae18
/usr/lib/libHepMC3.so.3
/usr/share/licenses/HepMC3
/usr/share/licenses/HepMC3/COPYING

References

Summary

In this tutorial we learn how to install HepMC3 on Fedora 34 using yum and dnf.