How To Install ustl on Fedora 34

ustl is A size-optimized STL implementation A size-optimized STL implementation

Introduction

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

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. ustl 2.8 6.fc34 x86_64 48 k ustl-2.8-6.fc34.src.rpm fedora A size-optimized STL implementation http MIT 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 34. In this tutorial we discuss both methods but you only need to choose one of method to install ustl.

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

sudo dnf -y install ustl

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

sudo yum -y install ustl

How To Uninstall ustl on Fedora 34

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

sudo dnf remove ustl

ustl Package Contents on Fedora 34

/usr/lib/.build-id
/usr/lib/.build-id/27
/usr/lib/.build-id/27/fff3d9dc58e54dc883c6806cee5beb535a4262
/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
/usr/lib/.build-id
/usr/lib/.build-id/e0
/usr/lib/.build-id/e0/2f9de438ab529baa2baaab51ed950759d9a489
/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 34 using yum and dnf.