How To Install libstdc++ on Fedora 34
Introduction
In this tutorial we learn how to install libstdc++
on Fedora 34.
What is libstdc++
The libstdc++ package contains a rewritten standard compliant GCC Standard C++ Library. libstdc++ 11.2.1 1.fc34 i686 744 k gcc-11.2.1-1.fc34.src.rpm updates GNU Standard C++ Library http GPLv3+ and GPLv3+ with exceptions and GPLv2+ with exceptions and LGPLv2+ and BSD The libstdc++ package contains a rewritten standard compliant GCC Standard C++ Library. libstdc++ 11.2.1 1.fc34 x86_64 696 k gcc-11.2.1-1.fc34.src.rpm updates GNU Standard C++ Library http GPLv3+ and GPLv3+ with exceptions and GPLv2+ with exceptions and LGPLv2+ and BSD The libstdc++ package contains a rewritten standard compliant GCC Standard C++ Library.
We can use yum
or dnf
to install libstdc++
on Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install libstdc++.
Install libstdc++ 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 libstdc++
using dnf
by running the following command:
sudo dnf -y install libstdc++
Install libstdc++ 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 libstdc++
using yum
by running the following command:
sudo yum -y install libstdc++
How To Uninstall libstdc++ on Fedora 34
To uninstall only the libstdc++
package we can use the following command:
sudo dnf remove libstdc++
libstdc++ Package Contents on Fedora 34
/usr/lib/.build-id
/usr/lib/.build-id/4c
/usr/lib/.build-id/4c/f0ed8f53d02500a315ec21b8cba040a1861441
/usr/lib/libstdc++.so.6
/usr/lib/libstdc++.so.6.0.29
/usr/share/gcc-11
/usr/share/gcc-11/python
/usr/share/gcc-11/python/libstdcxx
/usr/share/gcc-11/python/libstdcxx/__init__.py
/usr/share/gcc-11/python/libstdcxx/__pycache__
/usr/share/gcc-11/python/libstdcxx/__pycache__/__init__.cpython-39.opt-1.pyc
/usr/share/gcc-11/python/libstdcxx/__pycache__/__init__.cpython-39.pyc
/usr/share/gcc-11/python/libstdcxx/v6
/usr/share/gcc-11/python/libstdcxx/v6/__init__.py
/usr/share/gcc-11/python/libstdcxx/v6/__pycache__
/usr/share/gcc-11/python/libstdcxx/v6/__pycache__/__init__.cpython-39.opt-1.pyc
/usr/share/gcc-11/python/libstdcxx/v6/__pycache__/__init__.cpython-39.pyc
/usr/share/gcc-11/python/libstdcxx/v6/__pycache__/printers.cpython-39.opt-1.pyc
/usr/share/gcc-11/python/libstdcxx/v6/__pycache__/printers.cpython-39.pyc
/usr/share/gcc-11/python/libstdcxx/v6/__pycache__/xmethods.cpython-39.opt-1.pyc
/usr/share/gcc-11/python/libstdcxx/v6/__pycache__/xmethods.cpython-39.pyc
/usr/share/gcc-11/python/libstdcxx/v6/printers.py
/usr/share/gcc-11/python/libstdcxx/v6/xmethods.py
/usr/share/gdb
/usr/share/gdb/auto-load
/usr/share/gdb/auto-load/usr
/usr/share/gdb/auto-load/usr/lib
/usr/share/gdb/auto-load/usr/lib/__pycache__
/usr/share/gdb/auto-load/usr/lib/__pycache__/libstdc++.so.6.0.29-gdb.cpython-39.opt-1.pyc
/usr/share/gdb/auto-load/usr/lib/__pycache__/libstdc++.so.6.0.29-gdb.cpython-39.pyc
/usr/share/gdb/auto-load/usr/lib/libstdc++.so.6.0.29-gdb.py
/usr/lib/.build-id
/usr/lib/.build-id/9f
/usr/lib/.build-id/9f/4ca05ec2fa01cb478ff47e279732bf67f4d012
/usr/lib64/libstdc++.so.6
/usr/lib64/libstdc++.so.6.0.29
/usr/share/gcc-11
/usr/share/gcc-11/python
/usr/share/gcc-11/python/libstdcxx
/usr/share/gcc-11/python/libstdcxx/__init__.py
/usr/share/gcc-11/python/libstdcxx/__pycache__
/usr/share/gcc-11/python/libstdcxx/__pycache__/__init__.cpython-39.opt-1.pyc
/usr/share/gcc-11/python/libstdcxx/__pycache__/__init__.cpython-39.pyc
/usr/share/gcc-11/python/libstdcxx/v6
/usr/share/gcc-11/python/libstdcxx/v6/__init__.py
/usr/share/gcc-11/python/libstdcxx/v6/__pycache__
/usr/share/gcc-11/python/libstdcxx/v6/__pycache__/__init__.cpython-39.opt-1.pyc
/usr/share/gcc-11/python/libstdcxx/v6/__pycache__/__init__.cpython-39.pyc
/usr/share/gcc-11/python/libstdcxx/v6/__pycache__/printers.cpython-39.opt-1.pyc
/usr/share/gcc-11/python/libstdcxx/v6/__pycache__/printers.cpython-39.pyc
/usr/share/gcc-11/python/libstdcxx/v6/__pycache__/xmethods.cpython-39.opt-1.pyc
/usr/share/gcc-11/python/libstdcxx/v6/__pycache__/xmethods.cpython-39.pyc
/usr/share/gcc-11/python/libstdcxx/v6/printers.py
/usr/share/gcc-11/python/libstdcxx/v6/xmethods.py
/usr/share/gdb
/usr/share/gdb/auto-load
/usr/share/gdb/auto-load/usr
/usr/share/gdb/auto-load/usr/lib64
/usr/share/gdb/auto-load/usr/lib64/__pycache__
/usr/share/gdb/auto-load/usr/lib64/__pycache__/libstdc++.so.6.0.29-gdb.cpython-39.opt-1.pyc
/usr/share/gdb/auto-load/usr/lib64/__pycache__/libstdc++.so.6.0.29-gdb.cpython-39.pyc
/usr/share/gdb/auto-load/usr/lib64/libstdc++.so.6.0.29-gdb.py
/usr/lib/.build-id
/usr/lib/.build-id/bd
/usr/lib/.build-id/bd/d633ff5da0bba64d19ecf277a9eed7001da127
/usr/lib64/libstdc++.so.6
/usr/lib64/libstdc++.so.6.0.29
/usr/share/gcc-11
/usr/share/gcc-11/python
/usr/share/gcc-11/python/libstdcxx
/usr/share/gcc-11/python/libstdcxx/__init__.py
/usr/share/gcc-11/python/libstdcxx/__pycache__
/usr/share/gcc-11/python/libstdcxx/__pycache__/__init__.cpython-39.opt-1.pyc
/usr/share/gcc-11/python/libstdcxx/__pycache__/__init__.cpython-39.pyc
/usr/share/gcc-11/python/libstdcxx/v6
/usr/share/gcc-11/python/libstdcxx/v6/__init__.py
/usr/share/gcc-11/python/libstdcxx/v6/__pycache__
/usr/share/gcc-11/python/libstdcxx/v6/__pycache__/__init__.cpython-39.opt-1.pyc
/usr/share/gcc-11/python/libstdcxx/v6/__pycache__/__init__.cpython-39.pyc
/usr/share/gcc-11/python/libstdcxx/v6/__pycache__/printers.cpython-39.opt-1.pyc
/usr/share/gcc-11/python/libstdcxx/v6/__pycache__/printers.cpython-39.pyc
/usr/share/gcc-11/python/libstdcxx/v6/__pycache__/xmethods.cpython-39.opt-1.pyc
/usr/share/gcc-11/python/libstdcxx/v6/__pycache__/xmethods.cpython-39.pyc
/usr/share/gcc-11/python/libstdcxx/v6/printers.py
/usr/share/gcc-11/python/libstdcxx/v6/xmethods.py
/usr/share/gdb
/usr/share/gdb/auto-load
/usr/share/gdb/auto-load/usr
/usr/share/gdb/auto-load/usr/lib64
/usr/share/gdb/auto-load/usr/lib64/__pycache__
/usr/share/gdb/auto-load/usr/lib64/__pycache__/libstdc++.so.6.0.29-gdb.cpython-39.opt-1.pyc
/usr/share/gdb/auto-load/usr/lib64/__pycache__/libstdc++.so.6.0.29-gdb.cpython-39.pyc
/usr/share/gdb/auto-load/usr/lib64/libstdc++.so.6.0.29-gdb.py
/usr/lib/.build-id
/usr/lib/.build-id/e9
/usr/lib/.build-id/e9/8bddc034d38e8f4877b263db25e4706fb2a419
/usr/lib/libstdc++.so.6
/usr/lib/libstdc++.so.6.0.29
/usr/share/gcc-11
/usr/share/gcc-11/python
/usr/share/gcc-11/python/libstdcxx
/usr/share/gcc-11/python/libstdcxx/__init__.py
/usr/share/gcc-11/python/libstdcxx/__pycache__
/usr/share/gcc-11/python/libstdcxx/__pycache__/__init__.cpython-39.opt-1.pyc
/usr/share/gcc-11/python/libstdcxx/__pycache__/__init__.cpython-39.pyc
/usr/share/gcc-11/python/libstdcxx/v6
/usr/share/gcc-11/python/libstdcxx/v6/__init__.py
/usr/share/gcc-11/python/libstdcxx/v6/__pycache__
/usr/share/gcc-11/python/libstdcxx/v6/__pycache__/__init__.cpython-39.opt-1.pyc
/usr/share/gcc-11/python/libstdcxx/v6/__pycache__/__init__.cpython-39.pyc
/usr/share/gcc-11/python/libstdcxx/v6/__pycache__/printers.cpython-39.opt-1.pyc
/usr/share/gcc-11/python/libstdcxx/v6/__pycache__/printers.cpython-39.pyc
/usr/share/gcc-11/python/libstdcxx/v6/__pycache__/xmethods.cpython-39.opt-1.pyc
/usr/share/gcc-11/python/libstdcxx/v6/__pycache__/xmethods.cpython-39.pyc
/usr/share/gcc-11/python/libstdcxx/v6/printers.py
/usr/share/gcc-11/python/libstdcxx/v6/xmethods.py
/usr/share/gdb
/usr/share/gdb/auto-load
/usr/share/gdb/auto-load/usr
/usr/share/gdb/auto-load/usr/lib
/usr/share/gdb/auto-load/usr/lib/__pycache__
/usr/share/gdb/auto-load/usr/lib/__pycache__/libstdc++.so.6.0.29-gdb.cpython-39.opt-1.pyc
/usr/share/gdb/auto-load/usr/lib/__pycache__/libstdc++.so.6.0.29-gdb.cpython-39.pyc
/usr/share/gdb/auto-load/usr/lib/libstdc++.so.6.0.29-gdb.py
References
- [libstdc++ website](http://gcc.gnu.org http://gcc.gnu.org http://gcc.gnu.org)
Summary
In this tutorial we learn how to install libstdc++
on Fedora 34 using yum and dnf.