15, Oct 2026 RSS feed ↗
Centos

How to Install libstdc++ on CentOS

What is libstdc++

libstdc++ is a library of functions and classes that is an integral part of the GNU Compiler Collection (GCC) on Linux systems. It contains implementation code for standard C++ library functions, which are required by C++ programs to run. The library includes features such as input/output, strings, numeric algorithms, and memory management. It also contains support for various data structures and containers like arrays, vectors, maps, and sets. libstdc++ is typically installed alongside GCC, but it can also be installed separately as a package. It is an essential library for any Linux system that runs C++ programs or applications.

How to Install libstdc++ on CentOS

To install libstdc++ on CentOS, you can use the following command:

sudo yum install libstdc++

This will download and install the latest version of libstdc++ available in the default CentOS repository.

If you want to install a specific version of libstdc++, you can use the following command:

sudo yum install libstdc++-<version>

Replace <version> with the version of libstdc++ that you want to install. You can find the available versions of libstdc++ by running the following command:

sudo yum list libstdc++*

This will list all available versions of libstdc++ in the repository, and you can choose the version you want to install.

E

Evren E.

Holding a degree in Architecture, Evren E. brings a unique design-oriented perspective to his writing. Passionate about technology, blockchain, finance, music, and design, he crafts engaging content that bridges innovation and creativity across gaming, music, and tech platforms.

More from this author →