How To Install golang-x-text on Fedora 36

In this tutorial we learn how to install golang-x-text in Fedora 36. golang-x-text is Go text processing support

Introduction

In this tutorial we learn how to install golang-x-text on Fedora 36.

What is golang-x-text

Text is a repository of text-related packages related to internationalization (i18n) and localization (l10n), such as character encodings, text transformations, and locale-specific text handling.

We can use yum or dnf to install golang-x-text on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install golang-x-text.

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

sudo dnf -y install golang-x-text

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

sudo yum -y install golang-x-text

How To Uninstall golang-x-text on Fedora 36

To uninstall only the golang-x-text package we can use the following command:

sudo dnf remove golang-x-text

golang-x-text Package Contents on Fedora 36

/usr/bin/gotext
/usr/lib/.build-id
/usr/lib/.build-id/b3
/usr/lib/.build-id/b3/ef5660d599eabdd0ef20894306cdbcb22b83ca
/usr/share/doc/golang-x-text
/usr/share/doc/golang-x-text/AUTHORS
/usr/share/doc/golang-x-text/CONTRIBUTING.md
/usr/share/doc/golang-x-text/CONTRIBUTORS
/usr/share/doc/golang-x-text/README.md
/usr/share/licenses/golang-x-text
/usr/share/licenses/golang-x-text/LICENSE
/usr/share/licenses/golang-x-text/PATENTS

References

Summary

In this tutorial we learn how to install golang-x-text on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).