03, Nov 2026 RSS feed ↗

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.

Evren Elveren is the founder of LinuxHospital, iPhonePost, iPhonePedia, CasinoPost, SongArea, SongLyrics.band and LyricsKid. An entrepreneur active in online publishing and digital projects since 2006, he brings a publisher's perspective to the way technology, entertainment and online businesses develop. His background in architecture informs his interest in design, usability and the small details that make a product or website work well. Evren writes about consumer technology, Linux, digital finance and music, connecting product announcements with their wider business and cultural context. Across the network, his editorial focus is on clear explanations, useful comparisons and practical information that helps readers understand a change before deciding what to do next.

More from this author →