How To Install libgo on Fedora 34
Introduction
In this tutorial we learn how to install libgo
on Fedora 34.
What is libgo
This package contains Go shared library which is needed to run Go dynamically linked programs. libgo 11.2.1 1.fc34 x86_64 13 M gcc-11.2.1-1.fc34.src.rpm updates Go runtime http GPLv3+ and GPLv3+ with exceptions and GPLv2+ with exceptions and LGPLv2+ and BSD This package contains Go shared library which is needed to run Go dynamically linked programs.
We can use yum
or dnf
to install libgo
on Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install libgo.
Install libgo 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 libgo
using dnf
by running the following command:
sudo dnf -y install libgo
Install libgo 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 libgo
using yum
by running the following command:
sudo yum -y install libgo
How To Uninstall libgo on Fedora 34
To uninstall only the libgo
package we can use the following command:
sudo dnf remove libgo
libgo Package Contents on Fedora 34
/usr/lib/.build-id
/usr/lib/.build-id/69
/usr/lib/.build-id/69/14b4333321c06a834dcb39b26c714d7ea1c03f
/usr/lib/libgo.so.19
/usr/lib/libgo.so.19.0.0
/usr/share/doc/libgo
/usr/share/doc/libgo/LICENSE.libgo
/usr/share/doc/libgo/PATENTS.libgo
/usr/share/doc/libgo/README.libgo
/usr/lib/.build-id
/usr/lib/.build-id/ac/d03f4cbcb95600358f8d732a13a9b506020355
/usr/lib64/libgo.so.19
/usr/lib64/libgo.so.19.0.0
/usr/share/doc/libgo
/usr/share/doc/libgo/LICENSE.libgo
/usr/share/doc/libgo/PATENTS.libgo
/usr/share/doc/libgo/README.libgo
/usr/lib/.build-id
/usr/lib/.build-id/eb/895f5315944de4f39418d2c092811a7d132500
/usr/lib/libgo.so.19
/usr/lib/libgo.so.19.0.0
/usr/share/doc/libgo
/usr/share/doc/libgo/LICENSE.libgo
/usr/share/doc/libgo/PATENTS.libgo
/usr/share/doc/libgo/README.libgo
/usr/lib/.build-id
/usr/lib/.build-id/f9
/usr/lib/.build-id/f9/b497a935a538f3b7a93851ecfa3c6d472fdf3e
/usr/lib64/libgo.so.19
/usr/lib64/libgo.so.19.0.0
/usr/share/doc/libgo
/usr/share/doc/libgo/LICENSE.libgo
/usr/share/doc/libgo/PATENTS.libgo
/usr/share/doc/libgo/README.libgo
References
- [libgo website](http://gcc.gnu.org http://gcc.gnu.org)
Summary
In this tutorial we learn how to install libgo
on Fedora 34 using yum and dnf.