How To Install libcxx on Fedora 34

libcxx is C++ standard library targeting C++11 C++ standard library targeting C++11

Introduction

In this tutorial we learn how to install libcxx on Fedora 34.

What is libcxx

libc++ is a new implementation of the C++ standard library, targeting C++11. libcxx 12.0.0 1.fc34 x86_64 263 k libcxx-12.0.0-1.fc34.src.rpm updates C++ standard library targeting C++11 http MIT or NCSA libc++ is a new implementation of the C++ standard library, targeting C++11.

We can use yum or dnf to install libcxx on Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install libcxx.

Install libcxx 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 libcxx using dnf by running the following command:

sudo dnf -y install libcxx

Install libcxx 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 libcxx using yum by running the following command:

sudo yum -y install libcxx

How To Uninstall libcxx on Fedora 34

To uninstall only the libcxx package we can use the following command:

sudo dnf remove libcxx

libcxx Package Contents on Fedora 34

/usr/lib/.build-id
/usr/lib/.build-id/46
/usr/lib/.build-id/46/070058f2aef81bbac15c9edb45fa710f274ba7
/usr/lib64/libc++.so.1
/usr/lib64/libc++.so.1.0
/usr/share/doc/libcxx
/usr/share/doc/libcxx/CREDITS.TXT
/usr/share/doc/libcxx/TODO.TXT
/usr/share/licenses/libcxx
/usr/share/licenses/libcxx/LICENSE.TXT
/usr/lib/.build-id
/usr/lib/.build-id/b1
/usr/lib/.build-id/b1/496ec61100907a17201eb16532f7ee3833fa3d
/usr/lib/libc++.so.1
/usr/lib/libc++.so.1.0
/usr/share/doc/libcxx
/usr/share/doc/libcxx/CREDITS.TXT
/usr/share/doc/libcxx/TODO.TXT
/usr/share/licenses/libcxx
/usr/share/licenses/libcxx/LICENSE.TXT
/usr/lib/.build-id
/usr/lib/.build-id/df
/usr/lib/.build-id/df/c2dccefb6dd85552c39f1521af6e19073b4af5
/usr/lib/libc++.so.1
/usr/lib/libc++.so.1.0
/usr/share/doc/libcxx
/usr/share/doc/libcxx/CREDITS.TXT
/usr/share/doc/libcxx/TODO.TXT
/usr/share/licenses/libcxx
/usr/share/licenses/libcxx/LICENSE.TXT
/usr/lib/.build-id
/usr/lib/.build-id/ec
/usr/lib/.build-id/ec/1d2ce27206ce4da5c8a1fb169cbfcf130380bc
/usr/lib64/libc++.so.1
/usr/lib64/libc++.so.1.0
/usr/share/doc/libcxx
/usr/share/doc/libcxx/CREDITS.TXT
/usr/share/doc/libcxx/TODO.TXT
/usr/share/licenses/libcxx
/usr/share/licenses/libcxx/LICENSE.TXT

References

Summary

In this tutorial we learn how to install libcxx on Fedora 34 using yum and dnf.