How To Install Box2D on Fedora 34

Box2D is A 2D Physics Engine for Games A 2D Physics Engine for Games

Introduction

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

What is Box2D

Box2D is an open source C++ engine for simulating rigid bodies in 2D. Box2D is developed by Erin Catto and has the zlib license. While the zlib license does not require acknowledgement, we encourage you to give credit to Box2D in your product. Box2D 2.4.1 5.fc34 x86_64 111 k Box2D-2.4.1-5.fc34.src.rpm fedora A 2D Physics Engine for Games http zlib Box2D is an open source C++ engine for simulating rigid bodies in 2D. Box2D is developed by Erin Catto and has the zlib license. While the zlib license does not require acknowledgement, we encourage you to give credit to Box2D in your product.

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

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

sudo dnf -y install Box2D

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

sudo yum -y install Box2D

How To Uninstall Box2D on Fedora 34

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

sudo dnf remove Box2D

Box2D Package Contents on Fedora 34

/usr/lib/.build-id
/usr/lib/.build-id/30
/usr/lib/.build-id/30/5a049063c8cbc7eaea03475ff81a928bdeeb55
/usr/lib/libbox2d.so.2
/usr/lib/libbox2d.so.2.4.1
/usr/share/licenses/Box2D
/usr/share/licenses/Box2D/LICENSE
/usr/lib/.build-id
/usr/lib/.build-id/c6
/usr/lib/.build-id/c6/04764909d2727fa66fc18548b45380fa1f34c4
/usr/lib64/libbox2d.so.2
/usr/lib64/libbox2d.so.2.4.1
/usr/share/licenses/Box2D
/usr/share/licenses/Box2D/LICENSE

References

Summary

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