How To Install libxc on Rocky Linux 8

In this tutorial we learn how to install libxc on Rocky Linux 8. libxc is Library of exchange and correlation functionals for density-functional theory

Introduction

In this tutorial we learn how to install libxc on Rocky Linux 8.

What is libxc

libxc is a library of exchange and correlation functionals. Its purpose is to be used in codes that implement density-functional theory. For the moment, the library includes most of the local density approximations (LDAs), generalized density approximation (GGAs), and meta-GGAs. The library provides values for the energy density and its 1st, 2nd, and (for the LDAs) 3rd derivatives.

We can use yum or dnf to install libxc on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install libxc.

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

sudo dnf -y install libxc

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

sudo yum -y install libxc

How To Uninstall libxc on Rocky Linux 8

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

sudo dnf remove libxc

libxc Package Contents on Rocky Linux 8

/usr/bin/xc-info
/usr/bin/xc-threshold
/usr/lib/.build-id
/usr/lib/.build-id/0f
/usr/lib/.build-id/0f/4a211de579494275261bc97354df930cadef28
/usr/lib/.build-id/54
/usr/lib/.build-id/54/aea2f83abd064440ff8dc178b6e19025b620c1
/usr/lib/.build-id/6b
/usr/lib/.build-id/6b/9258ce4ea18ddbc123f3de600156dbf171f5d0
/usr/lib/.build-id/6c
/usr/lib/.build-id/6c/32b1074120b0a62a5be465d2a233ac9397b510
/usr/lib/.build-id/ef
/usr/lib/.build-id/ef/330bc6b06ecb365cfb7aa6229f62c013a9e9c9
/usr/lib64/libxc.so.5
/usr/lib64/libxc.so.5.3.4
/usr/lib64/libxcf03.so.5
/usr/lib64/libxcf03.so.5.3.4
/usr/lib64/libxcf90.so.5
/usr/lib64/libxcf90.so.5.3.4
/usr/share/doc/libxc
/usr/share/doc/libxc/AUTHORS
/usr/share/doc/libxc/COPYING
/usr/share/doc/libxc/ChangeLog
/usr/share/doc/libxc/NEWS
/usr/share/doc/libxc/README
/usr/share/doc/libxc/TODO

References

Summary

In this tutorial we learn how to install libxc on Rocky Linux 8 using yum and dnf.