How To Install ustl on Rocky Linux 8
Introduction
In this tutorial we learn how to install ustl
on Rocky Linux 8.
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 Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install ustl.
Install ustl on Rocky Linux 8 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 Rocky Linux 8 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 Rocky Linux 8
To uninstall only the ustl
package we can use the following command:
sudo dnf remove ustl
ustl Package Contents on Rocky Linux 8
/usr/lib/.build-id
/usr/lib/.build-id/7c
/usr/lib/.build-id/7c/7df86317ff4477454129931a679dddfd3f5a3c
/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
Summary
In this tutorial we learn how to install ustl
on Rocky Linux 8 using yum and dnf.