How To Install SDL2-static on Rocky Linux 8

In this tutorial we learn how to install SDL2-static on Rocky Linux 8. SDL2-static is Static libraries for SDL2

Introduction

In this tutorial we learn how to install SDL2-static on Rocky Linux 8.

What is SDL2-static

Static libraries for SDL2.

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

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

sudo dnf -y install SDL2-static

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

sudo yum -y install SDL2-static

How To Uninstall SDL2-static on Rocky Linux 8

To uninstall only the SDL2-static package we can use the following command:

sudo dnf remove SDL2-static

SDL2-static Package Contents on Rocky Linux 8

/usr/lib/libSDL2.a
/usr/lib/libSDL2_test.a
/usr/lib/libSDL2main.a
/usr/share/licenses/SDL2-static
/usr/share/licenses/SDL2-static/COPYING.txt
/usr/lib64/libSDL2.a
/usr/lib64/libSDL2_test.a
/usr/lib64/libSDL2main.a
/usr/share/licenses/SDL2-static
/usr/share/licenses/SDL2-static/COPYING.txt

References

Summary

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