How do you install gettext in Linux using apt-get command?
Here is a tutorial to learn how to install gettext using apt-get command.
Step 1: Open terminal with su access and enter the command as shown below:
apt-get install gettext -y
Step 2: After completion, the install command exits and instructs the user to restart the running instances of gettext if it is running already.
Result of the Command Execution shown below:
root@hiox:~ apt-get install gettext -y
Reading package lists...
Building dependency tree...
Reading state information...
The following packages were automatically installed and are no longer required:
x11 apps libsm dev python3 minimal libjaxp1.3 java dnsmasq base
libjargs java xfonts 75dpi libzbar0 libgnome bluetooth7 rpm2cpio xsltproc
libchewing3 data libice dev fakeroot libxrandr dev xfonts scalable
libexpat1 dev libiw dev libxerces2 java libxdamage dev pkg config
libpthread stubs0 scim bridge client gtk libxnee0 libsvga1 libxfixes dev
g++ 4.4 libibus1 libzend framework php libjpeg progs libnspr4 dev ibus gtk
libxcb render util0 dev scim modules table language pack zh hant base
x11proto xinerama dev mobile broadband provider info libpcap0.8
x11proto render dev libxi dev xmms2 plugin pulse java common librpmio0
librpm0 libmagick++2 rpm common icedtea 6 jre cacao libxnconfig9.0.5
libpixman 1 dev libsqlite0 lxde common libdirectfb extra java wrappers
default jre headless scim znc tcl g++ libfontconfig1 dev libscim8c2a
openjdk 6 jre lib firefox locale zh hans firefox locale zh hant python3.1
libnss3 dev xorg docs core x11proto kb dev x11proto randr dev
libxinerama dev gcc 4.4 x11 session utils libxosd2 pcmanfm
openjdk 6 jre headless xtrans dev libatk1.0 dev libchewing3 libmenu cache1
libelf1 blt x11proto input dev xmms2 plugin id3v2 x11proto fixes dev cnee
gcc xpdf reader linux headers 2.6.32 74 libggi2
linux headers 2.6.32 74 generic iputils arping zend framework bin libgii1
x11 xfs utils ttf arphic uming x11proto xext dev modemmanager tzdata java
libxext dev xfonts wqy scim gtk2 immodule znc perl x11proto damage dev
language support fonts zh hans language support fonts zh hant
linux headers generic manpages libnotify dev libglib2.0 dev
libzookeeper java zlib1g dev lesstif2 libcairo2 dev xfonts 100dpi
lxmenu data xmms2 plugin alsa im switch libzzip 0 13 libpango1.0 dev
libfreetype6 dev build essential libxau dev dpkg dev rpm libgii1 target x
librpmbuild0 libxmmsclient6 libfs6 scim bridge agent tcl8.5 pinyin database
xmms2 core python3 ttf arphic bsmi00lp xz utils ibus pinyin db open phrase
language pack zh hans base python3.1 minimal libc ares2 libc6 dev tk8.5
liblua5.1 0 libxcomposite dev libxcb render0 dev libxrender dev
xmms2 plugin vorbis libxmmsclient glib1 libmad0 lxpanel ttf arphic gbsn00lp
ca certificates java html2text xmms2 plugin mad libxft dev libx11 dev
ttf wqy zenhei libqt3 mt miscfiles x11proto composite dev linux libc dev
patch manpages dev xvfb ttf arphic ukai language pack zh hans
language pack zh hant libggi target x libdbus 1 dev libc dev bin libxcb1 dev
libgtk2.0 dev libmail sendmail perl xscreensaver libdirectfb dev binutils
libjpeg62 dev znc extra libdbus glib 1 dev libsys hostname long perl
liblog4j1.2 java openbsd inetd libjline java xmms2 icon libnet1
x11proto core dev xmms2 client cli xmms2 client nycli gnome doc utils
libxdmcp dev libpthread stubs0 dev libsysfs dev libxcursor dev wimpiggy
xpdf common scim modules socket libstdc++6 4.4 dev libpng12 dev
Use 'apt-get autoremove' to remove them.
Suggested packages:
gettext doc
The following NEW packages will be installed:
gettext
0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
Need to get 0B/1805kB of archives.
After this operation, 7561kB of additional disk space will be used.
Selecting previously deselected package gettext.
(Reading database ... (Reading database ... 5%(Reading database ... 10%(Reading database ... 15%(Reading database ... 20%(Reading database ... 25%(Reading database ... 30%(Reading database ... 35%(Reading database ... 40%(Reading database ... 45%(Reading database ... 50%(Reading database ... 55%(Reading database ... 60%(Reading database ... 65%(Reading database ... 70%(Reading database ... 75%(Reading database ... 80%(Reading database ... 85%(Reading database ... 90%(Reading database ... 95%(Reading database ... 100%(Reading database ... 137830 files and directories currently installed.)
Unpacking gettext (from .../gettext_0.17 8ubuntu3_amd64.deb) ...
Processing triggers for man db ...
Processing triggers for install info ...
Setting up gettext (0.17 8ubuntu3) ...
Processing triggers for libc bin ...
ldconfig deferred processing now taking place
root@hiox:~