How To Install HepMC on Fedora 34

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

Introduction

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

What is HepMC

The HepMC package is an object oriented event record written in C++ for High Energy Physics Monte Carlo Generators. Many extensions from HEPEVT, the Fortran HEP standard, are supported is unlimited, spin density matrices can be stored with each vertex, flow patterns (such as color) can be stored and traced, integers representing random number generator states can be stored, and an arbitrary number of event weights can be included. Particles and vertices are kept separate in a graph structure, physically similar to a physics event. The added information supports the modularization of event generators. The package has been kept as simple as possible with minimal internal/external dependencies. Event information is accessed by means of iterators supplied with the package. HepMC 2.06.11 3.fc34 x86_64 143 k HepMC-2.06.11-3.fc34.src.rpm fedora C++ Event Record for Monte Carlo Generators http GPLv2+ The HepMC package is an object oriented event record written in C++ for High Energy Physics Monte Carlo Generators. Many extensions from HEPEVT, the Fortran HEP standard, are supported is unlimited, spin density matrices can be stored with each vertex, flow patterns (such as color) can be stored and traced, integers representing random number generator states can be stored, and an arbitrary number of event weights can be included. Particles and vertices are kept separate in a graph structure, physically similar to a physics event. The added information supports the modularization of event generators. The package has been kept as simple as possible with minimal internal/external dependencies. Event information is accessed by means of iterators supplied with the package.

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

Install HepMC 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 HepMC using dnf by running the following command:

sudo dnf -y install HepMC

Install HepMC 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 HepMC using yum by running the following command:

sudo yum -y install HepMC

How To Uninstall HepMC on Fedora 34

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

sudo dnf remove HepMC

HepMC Package Contents on Fedora 34

/usr/lib/.build-id
/usr/lib/.build-id/23
/usr/lib/.build-id/23/550aad321567289a0a5f884fc8a3c18ecc8a21
/usr/lib/.build-id/ad
/usr/lib/.build-id/ad/182c678982e342677bb8cca7fcc582c580a72a
/usr/lib/libHepMC.so.4
/usr/lib/libHepMC.so.4.0.0
/usr/lib/libHepMCfio.so.4
/usr/lib/libHepMCfio.so.4.0.0
/usr/share/doc/HepMC
/usr/share/doc/HepMC/AUTHORS
/usr/share/doc/HepMC/ChangeLog
/usr/share/doc/HepMC/README
/usr/share/licenses/HepMC
/usr/share/licenses/HepMC/COPYING
/usr/lib/.build-id
/usr/lib/.build-id/a0
/usr/lib/.build-id/a0/88dddf3775cc889e68e53fa064108320e314cc
/usr/lib/.build-id/c9
/usr/lib/.build-id/c9/1920a1fc1a9aa5de1965c7a21934bd24362746
/usr/lib64/libHepMC.so.4
/usr/lib64/libHepMC.so.4.0.0
/usr/lib64/libHepMCfio.so.4
/usr/lib64/libHepMCfio.so.4.0.0
/usr/share/doc/HepMC
/usr/share/doc/HepMC/AUTHORS
/usr/share/doc/HepMC/ChangeLog
/usr/share/doc/HepMC/README
/usr/share/licenses/HepMC
/usr/share/licenses/HepMC/COPYING

References

Summary

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