How To Install lhapdf on Rocky Linux 8
Introduction
In this tutorial we learn how to install lhapdf
on Rocky Linux 8.
What is lhapdf
LHAPDF is a general purpose C++ interpolator, used for evaluating PDFs from discretized data files. Previous versions of LHAPDF were written in Fortran 77/90 and are documented at http LHAPDF6 vastly reduces the memory overhead of the Fortran LHAPDF (from gigabytes to megabytes!), entirely removes restrictions on numbers of concurrent PDFs, allows access to single PDF members without needing to load whole sets, and separates a new standardized PDF data format from the code library so that new PDF sets may be created and released easier and faster. The C++ LHAPDF6 also permits arbitrary parton contents via the standard PDG ID code scheme, is computationally more efficient (particularly if only one or two flavors are required at each phase space point, as in PDF reweighting), and uses a flexible metadata system which fixes many fundamental metadata and concurrency bugs in LHAPDF5. Compatibility routines are provided as standard for existing C++ and Fortran codes using the LHAPDF5 and PDFLIB legacy interfaces, so you can keep using your existing codes. But the new interface is much more powerful and pleasant to work with, so we think you’ll want to switch once you’ve used it! LHAPDF6 is documented in more detail in http
We can use yum
or dnf
to install lhapdf
on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install lhapdf.
Install lhapdf on Rocky Linux 8 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
After updating yum database, We can install lhapdf
using dnf
by running the following command:
sudo dnf -y install lhapdf
Install lhapdf on Rocky Linux 8 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
After updating yum database, We can install lhapdf
using yum
by running the following command:
sudo yum -y install lhapdf
How To Uninstall lhapdf on Rocky Linux 8
To uninstall only the lhapdf
package we can use the following command:
sudo dnf remove lhapdf
lhapdf Package Contents on Rocky Linux 8
/usr/lib/.build-id
/usr/lib/.build-id/b6
/usr/lib/.build-id/b6/6a585d6396572c4fd7ad1e3bd70df2666f0b39
/usr/lib64/libLHAPDF-6.3.0.so
/usr/share/LHAPDF
/usr/share/LHAPDF/lhapdf.conf
/usr/share/LHAPDF/pdfsets.index
/usr/share/doc/lhapdf
/usr/share/doc/lhapdf/AUTHORS
/usr/share/doc/lhapdf/ChangeLog
/usr/share/licenses/lhapdf
/usr/share/licenses/lhapdf/COPYING
References
Summary
In this tutorial we learn how to install lhapdf
on Rocky Linux 8 using yum and dnf.