How To Install lhapdf on CentOS 8
Introduction
In this tutorial we learn how to install lhapdf
on CentOS 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 CentOS 8. In this tutorial we discuss both methods but you only need to choose one of method to install lhapdf.
Install lhapdf on CentOS 8 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
The output should look something like this:
CentOS Linux 8 - AppStream 43 kB/s | 4.3 kB 00:00
CentOS Linux 8 - BaseOS 65 kB/s | 3.9 kB 00:00
CentOS Linux 8 - ContinuousRelease 43 kB/s | 3.0 kB 00:00
CentOS Linux 8 - Extras 23 kB/s | 1.5 kB 00:00
CentOS Linux 8 - FastTrack 40 kB/s | 3.0 kB 00:00
CentOS Linux 8 - HighAvailability 36 kB/s | 3.9 kB 00:00
CentOS Linux 8 - Plus 24 kB/s | 1.5 kB 00:00
CentOS Linux 8 - PowerTools 50 kB/s | 4.3 kB 00:00
Extra Packages for Enterprise Linux Modular 8 - x86_64 13 kB/s | 9.2 kB 00:00
Extra Packages for Enterprise Linux 8 - x86_64 24 kB/s | 8.5 kB 00:00
Metadata cache created.
After updating yum database, We can install lhapdf
using dnf
by running the following command:
sudo dnf -y install lhapdf
Install lhapdf on CentOS 8 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
The output should look something like this:
CentOS Linux 8 - AppStream 43 kB/s | 4.3 kB 00:00
CentOS Linux 8 - BaseOS 65 kB/s | 3.9 kB 00:00
CentOS Linux 8 - ContinuousRelease 43 kB/s | 3.0 kB 00:00
CentOS Linux 8 - Extras 23 kB/s | 1.5 kB 00:00
CentOS Linux 8 - FastTrack 40 kB/s | 3.0 kB 00:00
CentOS Linux 8 - HighAvailability 36 kB/s | 3.9 kB 00:00
CentOS Linux 8 - Plus 24 kB/s | 1.5 kB 00:00
CentOS Linux 8 - PowerTools 50 kB/s | 4.3 kB 00:00
Extra Packages for Enterprise Linux Modular 8 - x86_64 13 kB/s | 9.2 kB 00:00
Extra Packages for Enterprise Linux 8 - x86_64 24 kB/s | 8.5 kB 00:00
Metadata cache created.
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 CentOS 8
To uninstall only the lhapdf
package we can use the following command:
sudo dnf remove lhapdf
lhapdf Package Contents on CentOS 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 CentOS 8 using yum and dnf.