How To Install gettext on Fedora 34

gettext is GNU libraries and utilities for producing multi-lingual messages

Introduction

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

What is gettext

The GNU gettext package provides a set of tools and documentation for producing multi-lingual messages in programs. Tools include a set of conventions about how programs should be written to support message catalogs, a directory and file naming organization for the message catalogs, a runtime library which supports the retrieval of translated messages, and stand-alone programs for handling the translatable and the already translated strings. Gettext provides an easy to use library and tools for creating, using, and modifying natural language catalogs and is a powerful and simple method for internationalizing programs.

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

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

sudo dnf -y install gettext

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

sudo yum -y install gettext

How To Uninstall gettext on Fedora 34

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

sudo dnf remove gettext

gettext Package Contents on Fedora 34

/usr/bin/envsubst
/usr/bin/gettext
/usr/bin/gettext.sh
/usr/bin/msgattrib
/usr/bin/msgcat
/usr/bin/msgcmp
/usr/bin/msgcomm
/usr/bin/msgconv
/usr/bin/msgen
/usr/bin/msgexec
/usr/bin/msgfilter
/usr/bin/msgfmt
/usr/bin/msggrep
/usr/bin/msginit
/usr/bin/msgmerge
/usr/bin/msgunfmt
/usr/bin/msguniq
/usr/bin/ngettext
/usr/bin/recode-sr-latin
/usr/bin/xgettext
/usr/lib/.build-id
/usr/lib/.build-id/06
/usr/lib/.build-id/06/f5c3182013747ff7dba40681944562dd5ffeb5
/usr/lib/.build-id/08
/usr/lib/.build-id/08/680253195c801d07bf60b76ec8f829be85e091
/usr/lib/.build-id/0d
/usr/lib/.build-id/0d/57491e9e86886f94fa27017b6f2e47d0270b18
/usr/lib/.build-id/27
/usr/lib/.build-id/27/0ecde5e4d19e4adbf82045f60c518972c7344c
/usr/lib/.build-id/2d
/usr/lib/.build-id/2d/090b4ecbabfd9f3bd9613370ef55bd50a70ab3
/usr/lib/.build-id/40
/usr/lib/.build-id/40/c5f394e3c9941849cafa282ddc7e49a7de2991
/usr/lib/.build-id/49
/usr/lib/.build-id/49/a61fe4095fa2652dce64b6aefdc292d3f8e2ae
/usr/lib/.build-id/54
/usr/lib/.build-id/54/8e185e61bc2e692655420246e346f2f9c52aa4
/usr/lib/.build-id/56
/usr/lib/.build-id/56/6ed30e125ab4ca584a54e71ac9ed450b4327f0
/usr/lib/.build-id/5c
/usr/lib/.build-id/5c/340862af499160bdf0a3806ac96ab3e3ebdec9
/usr/lib/.build-id/5e
/usr/lib/.build-id/5e/693df87acb79a71f3928a73a3372a757358c47
/usr/lib/.build-id/67
/usr/lib/.build-id/67/f03d3f5af427fba53aaac33551a06bf7984c13
/usr/lib/.build-id/70
/usr/lib/.build-id/70/fd50bc6f52f1108690eb6e897c874b909f88e5
/usr/lib/.build-id/7e
/usr/lib/.build-id/7e/d1a24f08ba03c682dab9d041a06f7944f4629b
/usr/lib/.build-id/81
/usr/lib/.build-id/81/7ceefb2a444026f5be33efce637c84b9813798
/usr/lib/.build-id/87
/usr/lib/.build-id/87/e6c30e0b295168e3da2e82f12328c0639703cf
/usr/lib/.build-id/cc
/usr/lib/.build-id/cc/ef5e36f1ee229beb2337376344411edf4369e7
/usr/lib/.build-id/cd
/usr/lib/.build-id/cd/4f9ed5475a720252d0fd1d0426d6c9ceec7c5b
/usr/lib/.build-id/e9
/usr/lib/.build-id/e9/c4adcd0d5048a1a91f14daec1cb7a07d345b62
/usr/lib/.build-id/f4
/usr/lib/.build-id/f4/8fddfc75d2fb09710b456e533663e2ce163a6b
/usr/lib/.build-id/f8
/usr/lib/.build-id/f8/f7239c7e84ff54c2d7c461573e47e0b3b55f28
/usr/lib/.build-id/fa
/usr/lib/.build-id/fa/981bca520693371531121ea980cbf8679a44f3
/usr/lib64/gettext
/usr/lib64/gettext/cldr-plurals
/usr/lib64/gettext/hostname
/usr/lib64/gettext/project-id
/usr/lib64/gettext/urlget
/usr/lib64/gettext/user-email
/usr/share/doc/gettext
/usr/share/doc/gettext/AUTHORS
/usr/share/doc/gettext/BUGS
/usr/share/doc/gettext/COPYING
/usr/share/doc/gettext/COPYING.LIB
/usr/share/doc/gettext/DISCLAIM
/usr/share/doc/gettext/NEWS
/usr/share/doc/gettext/README
/usr/share/doc/gettext/THANKS
/usr/share/doc/gettext/envsubst.1.html
/usr/share/doc/gettext/gettext.1.html
/usr/share/doc/gettext/ngettext.1.html
/usr/share/gettext
/usr/share/gettext-0.21
/usr/share/gettext-0.21/its
/usr/share/gettext-0.21/its/glade.loc
/usr/share/gettext-0.21/its/glade1.its
/usr/share/gettext-0.21/its/glade2.its
/usr/share/gettext-0.21/its/gsettings.its
/usr/share/gettext-0.21/its/gsettings.loc
/usr/share/gettext-0.21/its/gtkbuilder.its
/usr/share/gettext-0.21/its/metainfo.its
/usr/share/gettext-0.21/its/metainfo.loc
/usr/share/gettext/ABOUT-NLS
/usr/share/gettext/its
/usr/share/gettext/po
/usr/share/gettext/po/Makefile.in.in
/usr/share/gettext/po/Makevars.template
/usr/share/gettext/po/Rules-quot
/usr/share/gettext/po/boldquot.sed
/usr/share/gettext/po/[email protected]
/usr/share/gettext/po/[email protected]
/usr/share/gettext/po/insert-header.sin
/usr/share/gettext/po/quot.sed
/usr/share/gettext/po/remove-potcdate.sin
/usr/share/gettext/styles
/usr/share/gettext/styles/po-default.css
/usr/share/gettext/styles/po-emacs-x.css
/usr/share/gettext/styles/po-emacs-xterm.css
/usr/share/gettext/styles/po-emacs-xterm16.css
/usr/share/gettext/styles/po-emacs-xterm256.css
/usr/share/gettext/styles/po-vim.css
/usr/share/info/gettext.info.gz
/usr/share/locale/ast/LC_MESSAGES/gettext-runtime.mo
/usr/share/locale/be/LC_MESSAGES/gettext-runtime.mo
/usr/share/locale/be/LC_MESSAGES/gettext-tools.mo
/usr/share/locale/bg/LC_MESSAGES/gettext-runtime.mo
/usr/share/locale/bg/LC_MESSAGES/gettext-tools.mo
/usr/share/locale/ca/LC_MESSAGES/gettext-runtime.mo
/usr/share/locale/ca/LC_MESSAGES/gettext-tools.mo
/usr/share/locale/cs/LC_MESSAGES/gettext-runtime.mo
/usr/share/locale/cs/LC_MESSAGES/gettext-tools.mo
/usr/share/locale/da/LC_MESSAGES/gettext-runtime.mo
/usr/share/locale/da/LC_MESSAGES/gettext-tools.mo
/usr/share/locale/de/LC_MESSAGES/gettext-runtime.mo
/usr/share/locale/de/LC_MESSAGES/gettext-tools.mo
/usr/share/locale/el/LC_MESSAGES/gettext-runtime.mo
/usr/share/locale/el/LC_MESSAGES/gettext-tools.mo
/usr/share/locale/en@boldquot/LC_MESSAGES/gettext-runtime.mo
/usr/share/locale/en@boldquot/LC_MESSAGES/gettext-tools.mo
/usr/share/locale/en@quot/LC_MESSAGES/gettext-runtime.mo
/usr/share/locale/en@quot/LC_MESSAGES/gettext-tools.mo
/usr/share/locale/eo/LC_MESSAGES/gettext-runtime.mo
/usr/share/locale/es/LC_MESSAGES/gettext-runtime.mo
/usr/share/locale/es/LC_MESSAGES/gettext-tools.mo
/usr/share/locale/et/LC_MESSAGES/gettext-runtime.mo
/usr/share/locale/et/LC_MESSAGES/gettext-tools.mo
/usr/share/locale/eu/LC_MESSAGES/gettext-tools.mo
/usr/share/locale/fi/LC_MESSAGES/gettext-runtime.mo
/usr/share/locale/fi/LC_MESSAGES/gettext-tools.mo
/usr/share/locale/fr/LC_MESSAGES/gettext-runtime.mo
/usr/share/locale/fr/LC_MESSAGES/gettext-tools.mo
/usr/share/locale/ga/LC_MESSAGES/gettext-runtime.mo
/usr/share/locale/gl/LC_MESSAGES/gettext-runtime.mo
/usr/share/locale/gl/LC_MESSAGES/gettext-tools.mo
/usr/share/locale/hr/LC_MESSAGES/gettext-runtime.mo
/usr/share/locale/hu/LC_MESSAGES/gettext-runtime.mo
/usr/share/locale/id/LC_MESSAGES/gettext-runtime.mo
/usr/share/locale/id/LC_MESSAGES/gettext-tools.mo
/usr/share/locale/it/LC_MESSAGES/gettext-runtime.mo
/usr/share/locale/it/LC_MESSAGES/gettext-tools.mo
/usr/share/locale/ja/LC_MESSAGES/gettext-runtime.mo
/usr/share/locale/ja/LC_MESSAGES/gettext-tools.mo
/usr/share/locale/ko/LC_MESSAGES/gettext-runtime.mo
/usr/share/locale/ko/LC_MESSAGES/gettext-tools.mo
/usr/share/locale/nb/LC_MESSAGES/gettext-runtime.mo
/usr/share/locale/nb/LC_MESSAGES/gettext-tools.mo
/usr/share/locale/nl/LC_MESSAGES/gettext-runtime.mo
/usr/share/locale/nl/LC_MESSAGES/gettext-tools.mo
/usr/share/locale/nn/LC_MESSAGES/gettext-runtime.mo
/usr/share/locale/nn/LC_MESSAGES/gettext-tools.mo
/usr/share/locale/pa/LC_MESSAGES/gettext-tools.mo
/usr/share/locale/pl/LC_MESSAGES/gettext-runtime.mo
/usr/share/locale/pl/LC_MESSAGES/gettext-tools.mo
/usr/share/locale/pt/LC_MESSAGES/gettext-runtime.mo
/usr/share/locale/pt/LC_MESSAGES/gettext-tools.mo
/usr/share/locale/pt_BR/LC_MESSAGES/gettext-runtime.mo
/usr/share/locale/pt_BR/LC_MESSAGES/gettext-tools.mo
/usr/share/locale/ro/LC_MESSAGES/gettext-runtime.mo
/usr/share/locale/ro/LC_MESSAGES/gettext-tools.mo
/usr/share/locale/ru/LC_MESSAGES/gettext-runtime.mo
/usr/share/locale/ru/LC_MESSAGES/gettext-tools.mo
/usr/share/locale/sk/LC_MESSAGES/gettext-runtime.mo
/usr/share/locale/sk/LC_MESSAGES/gettext-tools.mo
/usr/share/locale/sl/LC_MESSAGES/gettext-runtime.mo
/usr/share/locale/sl/LC_MESSAGES/gettext-tools.mo
/usr/share/locale/sr/LC_MESSAGES/gettext-runtime.mo
/usr/share/locale/sr/LC_MESSAGES/gettext-tools.mo
/usr/share/locale/sv/LC_MESSAGES/gettext-runtime.mo
/usr/share/locale/sv/LC_MESSAGES/gettext-tools.mo
/usr/share/locale/tr/LC_MESSAGES/gettext-runtime.mo
/usr/share/locale/tr/LC_MESSAGES/gettext-tools.mo
/usr/share/locale/uk/LC_MESSAGES/gettext-runtime.mo
/usr/share/locale/uk/LC_MESSAGES/gettext-tools.mo
/usr/share/locale/vi/LC_MESSAGES/gettext-runtime.mo
/usr/share/locale/vi/LC_MESSAGES/gettext-tools.mo
/usr/share/locale/zh_CN/LC_MESSAGES/gettext-runtime.mo
/usr/share/locale/zh_CN/LC_MESSAGES/gettext-tools.mo
/usr/share/locale/zh_HK/LC_MESSAGES/gettext-runtime.mo
/usr/share/locale/zh_TW/LC_MESSAGES/gettext-runtime.mo
/usr/share/locale/zh_TW/LC_MESSAGES/gettext-tools.mo
/usr/share/man/man1/envsubst.1.gz
/usr/share/man/man1/gettext.1.gz
/usr/share/man/man1/msgattrib.1.gz
/usr/share/man/man1/msgcat.1.gz
/usr/share/man/man1/msgcmp.1.gz
/usr/share/man/man1/msgcomm.1.gz
/usr/share/man/man1/msgconv.1.gz
/usr/share/man/man1/msgen.1.gz
/usr/share/man/man1/msgexec.1.gz
/usr/share/man/man1/msgfilter.1.gz
/usr/share/man/man1/msgfmt.1.gz
/usr/share/man/man1/msggrep.1.gz
/usr/share/man/man1/msginit.1.gz
/usr/share/man/man1/msgmerge.1.gz
/usr/share/man/man1/msgunfmt.1.gz
/usr/share/man/man1/msguniq.1.gz
/usr/share/man/man1/ngettext.1.gz
/usr/share/man/man1/recode-sr-latin.1.gz
/usr/share/man/man1/xgettext.1.gz

References

Summary

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