How To Install gc on Fedora 34
Introduction
In this tutorial we learn how to install gc
on Fedora 34.
What is gc
The Boehm-Demers-Weiser conservative garbage collector can be used as a garbage collecting replacement for C malloc or C++ new. gc 8.0.4 5.fc34 x86_64 105 k gc-8.0.4-5.fc34.src.rpm fedora A garbage collector for C and C++ http BSD The Boehm-Demers-Weiser conservative garbage collector can be used as a garbage collecting replacement for C malloc or C++ new.
We can use yum
or dnf
to install gc
on Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install gc.
Install gc 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 gc
using dnf
by running the following command:
sudo dnf -y install gc
Install gc 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 gc
using yum
by running the following command:
sudo yum -y install gc
How To Uninstall gc on Fedora 34
To uninstall only the gc
package we can use the following command:
sudo dnf remove gc
gc Package Contents on Fedora 34
/usr/lib/.build-id
/usr/lib/.build-id/3b
/usr/lib/.build-id/3b/5f05cfee11ae8d7b8dedc88476762db387b4f8
/usr/lib/.build-id/62
/usr/lib/.build-id/62/573f47c44551c3984a3f54b8e9db9f6ba2be7f
/usr/lib/.build-id/83
/usr/lib/.build-id/83/9534a9b9b032406f44dad1b640c40756ca6ddb
/usr/lib64/libcord.so.1
/usr/lib64/libcord.so.1.4.0
/usr/lib64/libgc.so.1
/usr/lib64/libgc.so.1.4.3
/usr/lib64/libgccpp.so.1
/usr/lib64/libgccpp.so.1.4.0
/usr/lib/.build-id
/usr/lib/.build-id/82
/usr/lib/.build-id/82/4362b97752fe4ba07ae307cc93e9ea09466455
/usr/lib/.build-id/8b
/usr/lib/.build-id/8b/6776b4557b6239b94a1b06b8bce4703db894a7
/usr/lib/.build-id/a5
/usr/lib/.build-id/a5/8335988038a582b9e8866a51e31a88c9fb4a81
/usr/lib/libcord.so.1
/usr/lib/libcord.so.1.4.0
/usr/lib/libgc.so.1
/usr/lib/libgc.so.1.4.3
/usr/lib/libgccpp.so.1
/usr/lib/libgccpp.so.1.4.0
References
- [gc website](http://www.hboehm.info/gc/ http://www.hboehm.info/gc/)
Summary
In this tutorial we learn how to install gc
on Fedora 34 using yum and dnf.