How To Install libxc on Fedora 34

libxc is Library of exchange and correlation functionals for density-functional theory Library of exchange and correlation functionals for density-functional theory

Introduction

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

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, 3rd, and 4th derivatives. libxc 5.1.5 2.fc34 x86_64 30 M libxc-5.1.5-2.fc34.src.rpm updates Library of exchange and correlation functionals for density-functional theory http MPLv2.0 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, 3rd, and 4th derivatives.

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

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

sudo dnf -y install libxc

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

sudo yum -y install libxc

How To Uninstall libxc on Fedora 34

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

sudo dnf remove libxc

libxc Package Contents on Fedora 34

/usr/bin/xc-info
/usr/bin/xc-threshold
/usr/lib/.build-id
/usr/lib/.build-id/00
/usr/lib/.build-id/00/8ea8382db67bdde733b7e69129d33cbe30b2e1
/usr/lib/.build-id/16
/usr/lib/.build-id/16/df8cdcf13d6dc788fbd5fe63cd770bb7ebc499
/usr/lib/.build-id/23
/usr/lib/.build-id/23/2b5837a8269828e54012dc53444fd8d5904c0d
/usr/lib/.build-id/4f
/usr/lib/.build-id/4f/32055b2a510be54f415b7d20eb32035ae245a5
/usr/lib/.build-id/ea
/usr/lib/.build-id/ea/b444b9e1de18674d0ef9cd90be338f067cedd7
/usr/lib/libxc.so.9
/usr/lib/libxc.so.9.1.3
/usr/lib/libxcf03.so.9
/usr/lib/libxcf03.so.9.1.3
/usr/lib/libxcf90.so.9
/usr/lib/libxcf90.so.9.1.3
/usr/share/doc/libxc
/usr/share/doc/libxc/AUTHORS
/usr/share/doc/libxc/ChangeLog.md
/usr/share/doc/libxc/NEWS
/usr/share/doc/libxc/README
/usr/share/doc/libxc/libxc.bib
/usr/share/licenses/libxc
/usr/share/licenses/libxc/COPYING
/usr/bin/xc-info
/usr/bin/xc-threshold
/usr/lib/.build-id
/usr/lib/.build-id/09
/usr/lib/.build-id/09/1c64eb8f2f165d5fabf258703961224c77f6ba
/usr/lib/.build-id/1b
/usr/lib/.build-id/1b/5e5c21725716f03da43ebc36d44d30cb6058a1
/usr/lib/.build-id/49
/usr/lib/.build-id/49/75a50b08bcf230a58852c934783b5d5da0e233
/usr/lib/.build-id/b6
/usr/lib/.build-id/b6/abed4e882a180fd2cc19d81efb99b7804dd324
/usr/lib/.build-id/bd
/usr/lib/.build-id/bd/bcf1772d12737fc61cfb39f6e922bb71bde947
/usr/lib64/libxc.so.9
/usr/lib64/libxc.so.9.1.3
/usr/lib64/libxcf03.so.9
/usr/lib64/libxcf03.so.9.1.3
/usr/lib64/libxcf90.so.9
/usr/lib64/libxcf90.so.9.1.3
/usr/share/doc/libxc
/usr/share/doc/libxc/AUTHORS
/usr/share/doc/libxc/ChangeLog.md
/usr/share/doc/libxc/NEWS
/usr/share/doc/libxc/README
/usr/share/doc/libxc/libxc.bib
/usr/share/licenses/libxc
/usr/share/licenses/libxc/COPYING
/usr/bin/xc-info
/usr/bin/xc-threshold
/usr/lib/.build-id
/usr/lib/.build-id/0d
/usr/lib/.build-id/0d/10b5a32e239c99a74e1ff3de15419db31e8f38
/usr/lib/.build-id/12
/usr/lib/.build-id/12/b77b089954521dcc0b5df5074b8044be53f549
/usr/lib/.build-id/41
/usr/lib/.build-id/41/7d5fe4768c4cc005cf6f32e8b4f232e5c6fd4f
/usr/lib/.build-id/e5
/usr/lib/.build-id/e5/9b874dfa03d1a3aa14fa97a4f5a8b964271cb4
/usr/lib/.build-id/ec
/usr/lib/.build-id/ec/e9b6a00c7aed7bb9d9b3aabae6e0035084b9bf
/usr/lib/libxc.so.9
/usr/lib/libxc.so.9.1.5
/usr/lib/libxcf03.so.9
/usr/lib/libxcf03.so.9.1.5
/usr/lib/libxcf90.so.9
/usr/lib/libxcf90.so.9.1.5
/usr/share/doc/libxc
/usr/share/doc/libxc/AUTHORS
/usr/share/doc/libxc/ChangeLog.md
/usr/share/doc/libxc/NEWS
/usr/share/doc/libxc/README
/usr/share/doc/libxc/libxc.bib
/usr/share/licenses/libxc
/usr/share/licenses/libxc/COPYING
/usr/bin/xc-info
/usr/bin/xc-threshold
/usr/lib/.build-id
/usr/lib/.build-id/14
/usr/lib/.build-id/14/b18c38157638e01c256c3de254889d5aea2082
/usr/lib/.build-id/28
/usr/lib/.build-id/28/6e5f93763129f009e4725f46f13171ec7ee35c
/usr/lib/.build-id/46
/usr/lib/.build-id/46/63f579914b0726e573106ae9f89155c96d07e9
/usr/lib/.build-id/67
/usr/lib/.build-id/67/17dd99d97ac2c114e286e992869dae50be79d2
/usr/lib/.build-id/b5
/usr/lib/.build-id/b5/e58869fe9cf0c86a330ffc8d141344d81db410
/usr/lib64/libxc.so.9
/usr/lib64/libxc.so.9.1.5
/usr/lib64/libxcf03.so.9
/usr/lib64/libxcf03.so.9.1.5
/usr/lib64/libxcf90.so.9
/usr/lib64/libxcf90.so.9.1.5
/usr/share/doc/libxc
/usr/share/doc/libxc/AUTHORS
/usr/share/doc/libxc/ChangeLog.md
/usr/share/doc/libxc/NEWS
/usr/share/doc/libxc/README
/usr/share/doc/libxc/libxc.bib
/usr/share/licenses/libxc
/usr/share/licenses/libxc/COPYING

References

Summary

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