How To Install libsolv on Rocky Linux 8

In this tutorial we learn how to install libsolv on Rocky Linux 8. libsolv is Package dependency solver

Introduction

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

What is libsolv

A free package dependency solver using a satisfiability algorithm. The library is based on two major, but independent, blocks - Using a dictionary approach to store and retrieve package and dependency information. - Using satisfiability, a well known and researched topic, for resolving package dependencies.

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

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

sudo dnf -y install libsolv

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

sudo yum -y install libsolv

How To Uninstall libsolv on Rocky Linux 8

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

sudo dnf remove libsolv

libsolv Package Contents on Rocky Linux 8

/usr/lib/.build-id
/usr/lib/.build-id/24
/usr/lib/.build-id/24/25548ba0af4edf82817a281fdc567731f95d9e
/usr/lib/.build-id/72
/usr/lib/.build-id/72/03e39528fc9a073b1f2ca56225c1ed6ecd92d8
/usr/lib64/libsolv.so.1
/usr/lib64/libsolvext.so.1
/usr/share/doc/libsolv
/usr/share/doc/libsolv/README
/usr/share/licenses/libsolv
/usr/share/licenses/libsolv/LICENSE.BSD
/usr/lib/.build-id
/usr/lib/.build-id/33
/usr/lib/.build-id/33/02dd9b09d4f410c09bd973256f306506648f71
/usr/lib/.build-id/4d
/usr/lib/.build-id/4d/2c184897c19fb0ba9d2f0f78204de04ded17ec
/usr/lib/libsolv.so.1
/usr/lib/libsolvext.so.1
/usr/share/doc/libsolv
/usr/share/doc/libsolv/README
/usr/share/licenses/libsolv
/usr/share/licenses/libsolv/LICENSE.BSD

References

Summary

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