How To Install gettext on Fedora 36

In this tutorial we learn how to install gettext in Fedora 36. gettext is GNU libraries and utilities for producing multi-lingual messages

Introduction

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

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 36. In this tutorial we discuss both methods but you only need to choose one of method to install gettext.

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

sudo dnf -y install gettext

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

sudo yum -y install gettext

How To Uninstall gettext on Fedora 36

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

sudo dnf remove gettext

gettext Package Contents on Fedora 36

/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/04
/usr/lib/.build-id/04/6e9325065a9f98011f87f546453d3fc3a9c2d4
/usr/lib/.build-id/0a
/usr/lib/.build-id/0a/4b645833d41531965d3e7bca5dcebd4a1dfce3
/usr/lib/.build-id/22
/usr/lib/.build-id/22/7f6b0e6f9812fa4e1715fb2dd174b830bb4547
/usr/lib/.build-id/2d
/usr/lib/.build-id/2d/07bf6a359f408f60ea226970296d9ad30b2563
/usr/lib/.build-id/32
/usr/lib/.build-id/32/4fd8884814501948d776ecad78777d73eaa543
/usr/lib/.build-id/48
/usr/lib/.build-id/48/93404b7e852cd0d186fd2ffaedf5af7d5000b6
/usr/lib/.build-id/5f
/usr/lib/.build-id/5f/224360529d255ab8ba5d799da753ad12dd5608
/usr/lib/.build-id/65
/usr/lib/.build-id/65/2cca9687ff100178a1bada144367223eb0c15e
/usr/lib/.build-id/69
/usr/lib/.build-id/69/15c87cf34eae7153c07ad2f8dfba54fe62f960
/usr/lib/.build-id/74
/usr/lib/.build-id/74/eb48c0a935aea5d9b02c28734c9d2b051583b9
/usr/lib/.build-id/81
/usr/lib/.build-id/81/1a2f8c068859aba1b01852311d86e093e81377
/usr/lib/.build-id/83
/usr/lib/.build-id/83/35fb4ddc475e6659836ba92b35635aa6e5c905
/usr/lib/.build-id/95
/usr/lib/.build-id/95/5002724cad69c8346d5fce5d6f7aa62f00c517
/usr/lib/.build-id/b7
/usr/lib/.build-id/b7/f569309e834478a64e67050d3c8b906ff6f4e6
/usr/lib/.build-id/cf
/usr/lib/.build-id/cf/21358677bd8817a7a9f4112f188596edc3e14e
/usr/lib/.build-id/d7
/usr/lib/.build-id/d7/8385c3aaf7151a0eb8e21461d17292944d3c01
/usr/lib/.build-id/da
/usr/lib/.build-id/da/7c52ff6d6f368db68ca05a6a6ea4e0d92eafdf
/usr/lib/.build-id/de
/usr/lib/.build-id/de/2f4eac008c73639f5efc544586e55992c94c40
/usr/lib/.build-id/e3
/usr/lib/.build-id/e3/52b8e25f83751ece13021ee09eadfbbce53e96
/usr/lib/.build-id/eb
/usr/lib/.build-id/eb/996eae4497d2dcfea1831ea697964635019857
/usr/lib/.build-id/f4
/usr/lib/.build-id/f4/62ecacc6fda381f9ce3d4625152786144e4ffe
/usr/lib/.build-id/fb
/usr/lib/.build-id/fb/a3d932a7857db774b04b22cbf90cf4e00e9f3d
/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.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/licenses/gettext
/usr/share/licenses/gettext/COPYING
/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 36 using yum and [dnf]((/fedora/36/dnf/).