Table of Contents
In this article, we will see how to install gettext-base package on Ubuntu 22.04. The gettext-base package is a fundamental component of the GNU Internationalization (i18n) utilities. It provides minimal tools necessary for programs to use native language support, focusing on essential utilities required for scripts or for systems with limited resources. It is designed to be lightweight, containing only the essential tools needed for basic internationalization support, making it suitable for minimal installations or systems with limited disk space.
gettext-base is compatible with POSIX systems and is commonly used in various Unix-like operating systems, including Linux distributions Ubuntu 22.04. In most of the cases, by default gettext-base package will be installed on Ubuntu 22.04 based systems but in case it is not installed, you can follow below steps to install the package.
How to Install gettext-base package on Ubuntu 22.04
Also Read: Solved "ltconfig: you must specify a host type if you use `--no-verify'"
Step 1: Prerequisites
a) You should have a running Ubuntu 22.04
Server.
b) You should have sudo
or root
access to run privileged commands.
c) You should have apt
or apt-get
utility available in your Server.
Step 2: Update Your Server
Before installing any new packages, you must always check for all the latest available security fixes and upgrades and then download and install them by using sudo apt update && sudo apt upgrade
command as shown below. This will keep your system secure and stable all the time.
cyberithub@ubuntu:~$ sudo apt update && sudo apt upgrade
Hit:1 http://security.ubuntu.com/ubuntu jammy-security InRelease
Hit:2 http://in.archive.ubuntu.com/ubuntu jammy InRelease
Hit:3 http://in.archive.ubuntu.com/ubuntu jammy-updates InRelease
Hit:4 http://in.archive.ubuntu.com/ubuntu jammy-backports InRelease
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
2 packages can be upgraded. Run 'apt list --upgradable' to see them.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
gjs libgjs0g
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
Step 3: Install gettext-base
Most of the time you will find it to be already installed in the system but in case if it is not installed then run sudo apt install gettext-base
command as shown below.
cyberithub@ubuntu:~$ sudo apt install gettext-base Reading package lists... Done Building dependency tree... Done Reading state information... Done gettext-base is already the newest version (0.21-4ubuntu4). 0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
Step 4: Verify Installation
After successful installation, you can verify the status by running dpkg -s gettext-base
command as shown below.
cyberithub@ubuntu:~$ dpkg -s gettext-base Package: gettext-base Status: install ok installed Priority: standard Section: utils Installed-Size: 284 Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com> Architecture: amd64 Multi-Arch: foreign Source: gettext Version: 0.21-4ubuntu4 Depends: libc6 (>= 2.34) Description: GNU Internationalization utilities for the base system This package includes the gettext and ngettext programs which allow other packages to internationalize the messages given by shell scripts. Homepage: https://www.gnu.org/software/gettext/ Original-Maintainer: Santiago Vila <sanvila@debian.org>
Step 5: List all the installed files
To check all the installed files path, you can run dpkg -L gettext-base
command as shown below. To know more about dpkg utility usage, check 21+ Practical dpkg Command Examples for Linux Beginners
cyberithub@ubuntu:~$ dpkg -L gettext-base
/.
/usr
/usr/bin
/usr/bin/envsubst
/usr/bin/gettext
/usr/bin/gettext.sh
/usr/bin/ngettext
/usr/share
/usr/share/doc
/usr/share/doc/gettext-base
/usr/share/doc/gettext-base/ABOUT-NLS
/usr/share/doc/gettext-base/changelog.Debian.gz
/usr/share/doc/gettext-base/copyright
/usr/share/java
/usr/share/java/libintl-0.21.jar
/usr/share/lintian
/usr/share/lintian/overrides
/usr/share/lintian/overrides/gettext-base
/usr/share/man
/usr/share/man/man1
/usr/share/man/man1/envsubst.1.gz
/usr/share/man/man1/gettext.1.gz
/usr/share/man/man1/ngettext.1.gz
/usr/share/man/man3
..........................................