How To Install libstdc++ on Fedora 36
Introduction
In this tutorial we learn how to install libstdc++
on Fedora 36.
What is libstdc++
The libstdc++ package contains a rewritten standard compliant GCC Standard C++ Library.
We can use yum
or dnf
to install libstdc++
on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install libstdc++.
Install libstdc++ on Fedora 36 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
After updating yum database, We can install libstdc++
using dnf
by running the following command:
sudo dnf -y install libstdc++
Install libstdc++ on Fedora 36 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
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 36
To uninstall only the libstdc++
package we can use the following command:
sudo dnf remove libstdc++
libstdc++ Package Contents on Fedora 36
/usr/lib/.build-id
/usr/lib/.build-id/3d
/usr/lib/.build-id/3d/67c91f8cc721b8a4b6e0e644cdf0f01c2f9469
/usr/lib64/libstdc++.so.6
/usr/lib64/libstdc++.so.6.0.30
/usr/share/gcc-12
/usr/share/gcc-12/python
/usr/share/gcc-12/python/libstdcxx
/usr/share/gcc-12/python/libstdcxx/__init__.py
/usr/share/gcc-12/python/libstdcxx/__pycache__
/usr/share/gcc-12/python/libstdcxx/__pycache__/__init__.cpython-310.opt-1.pyc
/usr/share/gcc-12/python/libstdcxx/__pycache__/__init__.cpython-310.pyc
/usr/share/gcc-12/python/libstdcxx/v6
/usr/share/gcc-12/python/libstdcxx/v6/__init__.py
/usr/share/gcc-12/python/libstdcxx/v6/__pycache__
/usr/share/gcc-12/python/libstdcxx/v6/__pycache__/__init__.cpython-310.opt-1.pyc
/usr/share/gcc-12/python/libstdcxx/v6/__pycache__/__init__.cpython-310.pyc
/usr/share/gcc-12/python/libstdcxx/v6/__pycache__/printers.cpython-310.opt-1.pyc
/usr/share/gcc-12/python/libstdcxx/v6/__pycache__/printers.cpython-310.pyc
/usr/share/gcc-12/python/libstdcxx/v6/__pycache__/xmethods.cpython-310.opt-1.pyc
/usr/share/gcc-12/python/libstdcxx/v6/__pycache__/xmethods.cpython-310.pyc
/usr/share/gcc-12/python/libstdcxx/v6/printers.py
/usr/share/gcc-12/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.30-gdb.cpython-310.opt-1.pyc
/usr/share/gdb/auto-load/usr/lib64/__pycache__/libstdc++.so.6.0.30-gdb.cpython-310.pyc
/usr/share/gdb/auto-load/usr/lib64/libstdc++.so.6.0.30-gdb.py
/usr/lib/.build-id
/usr/lib/.build-id/96
/usr/lib/.build-id/96/6126bdc5035b23b132a2a335b11a162f2f16fb
/usr/lib64/libstdc++.so.6
/usr/lib64/libstdc++.so.6.0.30
/usr/share/gcc-12
/usr/share/gcc-12/python
/usr/share/gcc-12/python/libstdcxx
/usr/share/gcc-12/python/libstdcxx/__init__.py
/usr/share/gcc-12/python/libstdcxx/__pycache__
/usr/share/gcc-12/python/libstdcxx/__pycache__/__init__.cpython-310.opt-1.pyc
/usr/share/gcc-12/python/libstdcxx/__pycache__/__init__.cpython-310.pyc
/usr/share/gcc-12/python/libstdcxx/v6
/usr/share/gcc-12/python/libstdcxx/v6/__init__.py
/usr/share/gcc-12/python/libstdcxx/v6/__pycache__
/usr/share/gcc-12/python/libstdcxx/v6/__pycache__/__init__.cpython-310.opt-1.pyc
/usr/share/gcc-12/python/libstdcxx/v6/__pycache__/__init__.cpython-310.pyc
/usr/share/gcc-12/python/libstdcxx/v6/__pycache__/printers.cpython-310.opt-1.pyc
/usr/share/gcc-12/python/libstdcxx/v6/__pycache__/printers.cpython-310.pyc
/usr/share/gcc-12/python/libstdcxx/v6/__pycache__/xmethods.cpython-310.opt-1.pyc
/usr/share/gcc-12/python/libstdcxx/v6/__pycache__/xmethods.cpython-310.pyc
/usr/share/gcc-12/python/libstdcxx/v6/printers.py
/usr/share/gcc-12/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.30-gdb.cpython-310.opt-1.pyc
/usr/share/gdb/auto-load/usr/lib64/__pycache__/libstdc++.so.6.0.30-gdb.cpython-310.pyc
/usr/share/gdb/auto-load/usr/lib64/libstdc++.so.6.0.30-gdb.py
References
Summary
In this tutorial we learn how to install libstdc++
on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).