How To Install lhapdf on CentOS 7
Introduction
In this tutorial we learn how to install lhapdf
on CentOS 7.
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 CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install lhapdf.
Install lhapdf on CentOS 7 Using yum
Update yum database with yum
using the following command.
sudo yum makecache
After updating yum database, We can install lhapdf
using yum
by running the following command:
sudo yum -y install lhapdf
Install lhapdf on CentOS 7 Using dnf
If you don’t have dnf installed you can install DNF on CentOS 7 first.
Update yum database with dnf
using the following command.
sudo dnf makecache
After updating yum database, We can install lhapdf
using dnf
by running the following command:
sudo dnf -y install lhapdf
How To Uninstall lhapdf on CentOS 7
To uninstall only the lhapdf
package we can use the following command:
sudo dnf remove lhapdf
References
Summary
In this tutorial we learn how to install lhapdf
on CentOS 7 using yum
and dnf
.