How To Install ustl on Fedora 36

In this tutorial we learn how to install ustl in Fedora 36. ustl is A size-optimized STL implementation

Introduction

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

What is ustl

The C++ standard template library (STL) is a collection of common containers and algorithms in template form. Unfortunately its standard incarnation shipped with gcc is implemented without much concern for code size. Not only is the library itself large, the current version being over a megabyte in size, but with all the code you instantiate by using a vector for each of your containers, it is easy to become fearful and opt for using static arrays instead or, worse yet, abandon C++ altogether for C. This is especially painful to former DOS assembly programmers like myself, who fret endlessly when the size of the executable crosses the magic 64k boundary, forgetting that nobody cares about memory anymore. Of course, these days everyone has gigabytes of RAM and has no compunction about loading up OpenOffice, whose source tree is over a gigabyte in size. Why then bother with saving a kilobyte of code here and there? I can’t really say. Maybe it’s that warm fuzzy knowledge that you are making maximum possible use of your computer’s resources. Maybe it’s that thrill you get after expressing your program’s functionality in the fewest possible instructions and the minimum imaginable overhead. Or maybe it really is of no importance and any code bloat will be easily overcome by faster processors in some near future. I just know what I like, and it’s the sight of clean, concise, and fast code. Therefore this library.

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

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

sudo dnf -y install ustl

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

sudo yum -y install ustl

How To Uninstall ustl on Fedora 36

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

sudo dnf remove ustl

ustl Package Contents on Fedora 36

---
title: "How To Install ustl on Fedora 36"
linkTitle: "ustl"
type: "docs"
description: "In this tutorial we learn how to install ustl in Fedora 36. ustl is A size-optimized STL implementation"
date: "2022-08-17"
lastmod: "2022-08-17"
#image: /images/fedora/36/ustl-featured.png
---

## Introduction

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

### What is `ustl`

> The C++ standard template library (STL) is a collection of common containers and algorithms in template form. Unfortunately its standard incarnation shipped with gcc is implemented without much concern for code size. Not only is the library itself large, the current version being over a megabyte in size, but with all the code you instantiate by using a vector for each of your containers, it is easy to become fearful and opt for using static arrays instead or, worse yet, abandon C++ altogether for C. This is especially painful to former DOS assembly programmers like myself, who fret endlessly when the size of the executable crosses the magic 64k boundary, forgetting that nobody cares about memory anymore.  Of course, these days everyone has gigabytes of RAM and has no compunction about loading up OpenOffice, whose source tree is over a gigabyte in size. Why then bother with saving a kilobyte of code here and there? I can't really say. Maybe it's that warm fuzzy knowledge that you are making maximum possible use of your computer's resources. Maybe it's that thrill you get after expressing your program's functionality in the fewest possible instructions and the minimum imaginable overhead. Or maybe it really is of no importance and any code bloat will be easily overcome by faster processors in some near future. I just know what I like, and it's the sight of clean, concise, and fast code. Therefore this library.  

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

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

sudo dnf -y install ustl

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

sudo yum -y install ustl

How To Uninstall ustl on Fedora 36

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

sudo dnf remove ustl

ustl Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/a8
/usr/lib/.build-id/a8/3db6c7ff4f6460c5eacaffe7e3326b599a440d
/usr/lib/libustl.so.2
/usr/lib/libustl.so.2.8
/usr/share/doc/ustl
/usr/share/doc/ustl/README
/usr/share/licenses/ustl
/usr/share/licenses/ustl/LICENSE

References

Summary

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

/usr/lib/.build-id /usr/lib/.build-id/bf /usr/lib/.build-id/bf/025c202363c29bbf68ad1623fcd6c03afc9777 /usr/lib64/libustl.so.2 /usr/lib64/libustl.so.2.8 /usr/share/doc/ustl /usr/share/doc/ustl/README /usr/share/licenses/ustl /usr/share/licenses/ustl/LICENSE


## References

* [ustl website](http://msharov.github.io/ustl/)

## Summary

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