How To Install Box2D on Fedora 36

In this tutorial we learn how to install Box2D in Fedora 36. Box2D is A 2D Physics Engine for Games

Introduction

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

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.

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

Install Box2D on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install Box2D using dnf by running the following command:

sudo dnf -y install Box2D

Install Box2D on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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 36

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

sudo dnf remove Box2D

Box2D Package Contents on Fedora 36

---
title: "How To Install Box2D on Fedora 36"
linkTitle: "Box2D"
type: "docs"
description: "In this tutorial we learn how to install Box2D in Fedora 36. Box2D is A 2D Physics Engine for Games"
date: "2022-08-17"
lastmod: "2022-08-17"
#image: /images/fedora/36/Box2D-featured.png
---

## Introduction

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

### 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.  

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

## Install Box2D on Fedora 36 Using dnf

Update yum database with `dnf` using the following command.

```bash
sudo dnf makecache --refresh

After updating yum database, We can install Box2D using dnf by running the following command:

sudo dnf -y install Box2D

Install Box2D on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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 36

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

sudo dnf remove Box2D

Box2D Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/26
/usr/lib/.build-id/26/81774922a5b7fe82404643611ad2f94fed5bc7
/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 36 using yum and [dnf]((/fedora/36/dnf/).

/usr/lib/.build-id /usr/lib/.build-id/26 /usr/lib/.build-id/26/154095eea212fa0cef9e7cb5360e6a318762f4 /usr/lib/libbox2d.so.2 /usr/lib/libbox2d.so.2.4.1 /usr/share/licenses/Box2D /usr/share/licenses/Box2D/LICENSE


## References

* [Box2D website](http://box2d.org/)

## Summary

In this tutorial we learn how to install `Box2D` on [Fedora 36](/fedora/36/) using [yum](/fedora/36/yum/) and [dnf]((/fedora/36/dnf/).