How To Install libwebsockets on Fedora 36

In this tutorial we learn how to install libwebsockets in Fedora 36. libwebsockets is Lightweight C library for Websockets

Introduction

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

What is libwebsockets

This is the libwebsockets C library for lightweight websocket clients and servers.

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

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

sudo dnf -y install libwebsockets

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

sudo yum -y install libwebsockets

How To Uninstall libwebsockets on Fedora 36

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

sudo dnf remove libwebsockets

libwebsockets Package Contents on Fedora 36

---
title: "How To Install libwebsockets on Fedora 36"
linkTitle: "libwebsockets"
type: "docs"
description: "In this tutorial we learn how to install libwebsockets in Fedora 36. libwebsockets is Lightweight C library for Websockets"
date: "2022-08-17"
lastmod: "2022-08-17"
#image: /images/fedora/36/libwebsockets-featured.png
---

## Introduction

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

### What is `libwebsockets`

> This is the libwebsockets C library for lightweight websocket clients and servers.  

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

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

sudo dnf -y install libwebsockets

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

sudo yum -y install libwebsockets

How To Uninstall libwebsockets on Fedora 36

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

sudo dnf remove libwebsockets

libwebsockets Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/7b
/usr/lib/.build-id/7b/73688c1c994c37c5da25d44b0efd5f721ebd7f
/usr/lib/libwebsockets.so.19
/usr/share/doc/libwebsockets
/usr/share/doc/libwebsockets/README.md
/usr/share/doc/libwebsockets/changelog
/usr/share/licenses/libwebsockets
/usr/share/licenses/libwebsockets/LICENSE

References

Summary

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

/usr/lib/.build-id /usr/lib/.build-id/b3 /usr/lib/.build-id/b3/0aa0648363c8ed4f252ec5521aa59c58ca1981 /usr/lib64/libwebsockets.so.19 /usr/share/doc/libwebsockets /usr/share/doc/libwebsockets/README.md /usr/share/doc/libwebsockets/changelog /usr/share/licenses/libwebsockets /usr/share/licenses/libwebsockets/LICENSE


## References

* [libwebsockets website](http://libwebsockets.org)

## Summary

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