How To Install ustr on Fedora 36
Introduction
In this tutorial we learn how to install ustr on Fedora 36.
What is ustr
Micro string library, very low overhead from plain strdup() (Ave. 44% for 0-20B strings). Very easy to use in existing C code. At it’s simplest you can just include a single header file into your .c and start using it. This package also distributes pre-built shared libraries.
We can use yum or dnf to install ustr on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install ustr.
Install ustr 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 ustr using dnf by running the following command:
sudo dnf -y install ustr
Install ustr 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 ustr using yum by running the following command:
sudo yum -y install ustr
How To Uninstall ustr on Fedora 36
To uninstall only the ustr package we can use the following command:
sudo dnf remove ustr
ustr Package Contents on Fedora 36
---
title: "How To Install ustr on Fedora 36"
linkTitle: "ustr"
type: "docs"
description: "In this tutorial we learn how to install ustr in Fedora 36. ustr is String library, very low memory overhead, simple to import"
date: "2022-08-17"
lastmod: "2022-08-17"
#image: /images/fedora/36/ustr-featured.png
---
## Introduction
In this tutorial we learn how to install `ustr` on Fedora 36.
### What is `ustr`
> Micro string library, very low overhead from plain strdup() (Ave. 44% for 0-20B strings). Very easy to use in existing C code. At it's simplest you can just include a single header file into your .c and start using it. This package also distributes pre-built shared libraries.
We can use `yum` or `dnf` to install `ustr` on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install ustr.
## Install ustr 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 ustr using dnf by running the following command:
/usr/lib/.build-id
/usr/lib/.build-id/42
/usr/lib/.build-id/42/0df51a7d0ef0b1f86e6683d857d8de7a5537c2
/usr/lib/libustr-1.0.so.1
/usr/lib/libustr-1.0.so.1.0.4
/usr/share/doc/ustr
/usr/share/doc/ustr/ChangeLog
/usr/share/doc/ustr/NEWS
/usr/share/doc/ustr/README
/usr/share/licenses/ustr
/usr/share/licenses/ustr/LICENSE
/usr/share/licenses/ustr/LICENSE_BSD
/usr/share/licenses/ustr/LICENSE_LGPL
/usr/share/licenses/ustr/LICENSE_MIT
sudo dnf -y install ustr
Install ustr 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 ustr using yum by running the following command:
sudo yum -y install ustr
How To Uninstall ustr on Fedora 36
## References
* [ustr website](http://www.and.org/ustr/)
## Summary
In this tutorial we learn how to install `ustr` on [Fedora 36](/fedora/36/) using [yum](/fedora/36/yum/) and [dnf]((/fedora/36/dnf/).
To uninstall only the `ustr` package we can use the following command:
```bash
sudo dnf remove ustr
ustr Package Contents on Fedora 36
/usr/lib/.build-id
/usr/lib/.build-id/50
/usr/lib/.build-id/50/0023a8fab3bb9519d09fe35d2c08f1b38d165e
/usr/lib64/libustr-1.0.so.1
/usr/lib64/libustr-1.0.so.1.0.4
/usr/share/doc/ustr
/usr/share/doc/ustr/ChangeLog
/usr/share/doc/ustr/NEWS
/usr/share/doc/ustr/README
/usr/share/licenses/ustr
/usr/share/licenses/ustr/LICENSE
/usr/share/licenses/ustr/LICENSE_BSD
/usr/share/licenses/ustr/LICENSE_LGPL
/usr/share/licenses/ustr/LICENSE_MIT
References
Summary
In this tutorial we learn how to install ustr on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).