Applications 09 - Yum - Language Pack Management

J

Jarret W. Buse

Guest
Applications 09 - Yum - Language Pack Management

Dealing with the possibility of having and requiring various languages on a single system can make things difficult. To manage the language packs installed on a Linux system with “yum” there are a few things to know.

With “yum” there are five subcommands which can be used to manage the language packs:

  1. langavailable – lists installed languages on the Operating System (OS)
  2. langinfo – shows packages available for a specified language
  3. langinstall – install packages for a specified language
  4. langlist – view languages currently installed
  5. langremove – remove specified language packs

The specified language packs are abbreviated as follows:

  • Afrikaans [af]
  • Akan [ak]
  • Albanian [sq]
  • Amharic [am]
  • Ancient Greek [grc]
  • Arabic [ar]
  • Armenian [hy]
  • Assamese [as]
  • Asturian [ast]
  • Azerbaijani [az]
  • Basque [eu]
  • Belarusian [be]
  • Bengali [bn]
  • Berber [ber]
  • Bosnian [bs]
  • Breton [br]
  • Bulgarian [bg]
  • Catalan [ca]
  • Chinese [zh]
  • Chuvash [cv]
  • Coptic [cop]
  • Croatian

    [*]Czech [cs]
    [*]Danish [da]
    [*]Dutch [nl]
    [*]Dzongkha [dz]
    [*]English [en]
    [*]English (Australia) [en_AU]
    [*]English (Canada) [en_CA]
    [*]English (United Kingdom) [en_GB]
    [*]Esperanto [eo]
    [*]Estonian [et]
    [*]Faroese [fo]
    [*]Fijian [fj]
    [*]Finnish [fi]
    [*]French [fr]
    [*]Friulian [fur]
    [*]Galician [gl]
    [*]German [de]
    [*]Greek [el]
    [*]Gujarati [gu]
    [*]Haitian [ht]
    [*]Hawaiian [haw]
    [*]Hebrew [he]
    [*]Hiligaynon [hil]
    [*]Hindi [hi]
    [*]Hungarian [hu]
    [*]Icelandic [is]
    [*]Indonesian [id]
    [*]Interlingua [ia]
    [*]Irish [ga]
    [*]Italian [it]
    [*]Japanese [ja]
    [*]Kannada [kn]
    [*]Kashubian [csb]
    [*]Kazakh [kk]
    [*]Khmer [km]
    [*]Kinyarwanda [rw]
    [*]Kirghiz [ky]
    [*]Korean [ko]
    [*]Kurdish [ku]
    [*]Latin [la]
    [*]Latvian [lv]
    [*]Lingala [ln]
    [*]Lithuanian [lt]
    [*]Low German [nds]
    [*]Lower Sorbian [dsb]
    [*]Lule Sami [smj]
    [*]Luxembourgish [lb]
    [*]Macedonian [mk]
    [*]Maithili [mai]
    [*]Malagasy [mg]
    [*]Malay [ms]
    [*]Malayalam [ml]
    [*]Maltese [mt]
    [*]Manx [gv]
    [*]Maori [mi]
    [*]Marathi [mr]
    [*]Mongolian [mn]
    [*]Mossi [mos]
    [*]Nepali [ne]
    [*]Northern Sami [se]
    [*]Northern Sotho [nso]
    [*]Norwegian [no]
    [*]Norwegian Bokmål [nb]
    [*]Norwegian Nynorsk [nn]
    [*]Nyanja [ny]
    [*]Occitan [oc]
    [*]Odia [or]
    [*]Oromo [om]
    [*]Persian [fa]
    [*]Polish [pl]
    [*]Portuguese [pt]
    [*]Portuguese (Brazil) [pt_BR]
    [*]Portuguese (Portugal) [pt_PT]
    [*]Punjabi [pa]
    [*]Quechua [qu]
    [*]Romanian [ro]
    [*]Russian [ru]
    [*]Sanskrit [sa]
    [*]Sardinian [sc]
    [*]Scottish Gaelic [gd]
    [*]Serbian [sr]
    [*]Shuswap language [shs]
    [*]Simplified Chinese (China) [zh_CN]
    [*]Sinhala [si]
    [*]Slovak [sk]
    [*]Slovenian [sl]
    [*]Somali [so]
    [*]South Bolivian Quechua [quh]
    [*]South Ndebele [nr]
    [*]Southern Sotho [st]
    [*]Spanish [es]
    [*]Swahili [sw]
    [*]Swati [ss]
    [*]Swedish [sv]
    [*]Tagalog [fil]
    [*]Tajik [tg]
    [*]Tamil [ta]
    [*]Telugu [te]
    [*]Tetum [tet]
    [*]Thai [th]
    [*]Tigrinya [ti]
    [*]Tok Pisin [tpi]
    [*]Traditional Chinese (Republic of China) [zh_TW]
    [*]Tsonga [ts]
    [*]Tswana [tn]
    [*]Turkish [tr]
    [*]Turkmen [tk]
    [*]Ukrainian [uk]
    [*]Upper Sorbian [hsb]
    [*]Urdu [ur]
    [*]Uyghur [ug]
    [*]Uzbek [uz]
    [*]Venda [ve]
    [*]Vietnamese [vi]
    [*]Walloon [wa]
    [*]Welsh [cy]
    [*]Western Frisian [fy]
    [*]Xhosa [xh]
    [*]Yiddish [yi]
    [*]Zulu [zu]



NOTE: This list is a list given using the subcommand “langavailable” for Fedora.

Once you know what languages are available, you can use the abbreviated code in the other subcommands.

The “langinfo” subcommand is used to show the packages available for a specified language. For instance, to list the packages which are available for the Spanish language, the command would be: “yum langinfo es”. The sample output would be:

Language-Id=es
aspell-es
autocorr-es
calligra-l10n-es
drascula-es
eclipse-nls-es
gcompris-sound-es
gimp-help-es
gnome-getting-started-docs-es
hunspell-es
hyphen-es
kde-i18n-Spanish
kde-l10n-Spanish
kicad-doc-es
libreoffice-langpack-es
man-pages-es
mythes-es
nqc-doc-es
tagainijisho-dic-es
tkgate-es


To install the language packages, the subcommand “langinstall” is used with the specified language pack abbreviation. For example, to install the Spanish language packs, the command is: “yum langinstall es”.

To show which language packs are installed on a system, use the “langlist” subcommand. Even for an OS which is installed as English (en), the “langlist” subcommand will not return English as installed language. The default Language Pack is usually not shown as installed. Only secondary languages are listed and not the primary language pack.

Once a Language Pack is installed, it can be removed by using the “langremove” subcommand. The language abbreviation needs to be specified. If a system is installed with English as the primary language and Spanish is secondary, the secondary language can be removed with the command: “yum langremove es”.

These subcommands may not be used too often, but you should be aware of them. In business environments, these subcommands may be more commonly used than on personal systems.
 

Attachments

  • slide.jpg
    slide.jpg
    32.9 KB · Views: 51,986


Latest posts

Top