From Fedora Project Wiki

Revision as of 18:47, 13 April 2016 by Snavin (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Description

The test case helps to check how to install or uninstall locales individually.

Note: Live ISO has glibc-all-langpacks default installed. To execute below test, Install Live ISO, then remove $dnf remove glibc-all-langpacks and then proceed for below steps.


How to test

Case 1

  1. Run dnf install glibc-langpack-<lang_code> to install package containing locales for your language. Example: dnf install glibc-langpack-fr to install locales from French.
  2. Run locale -a to check the French locales this has installed.
  3. You can remove this locale by dnf remove glibc-langpack-fr

Case 2

  1. Installing the meta packages langpacks-<lang_code> should automatically install the respective glibc packages. Run dnf install langpacks-<lang_code>. For example: dnf install langpacks-fr for French. This will install few packages useful for French including glibc-langpack-fr
  2. To remove : Run dnf remove langpacks-fr. This will remove few packages from French including glibc-langpack-fr.

Case 3

  1. All the available locales can be installed into /usr/lib/locale/locale-archive by installing glibc-all-langpacks package :
  Run dnf install glibc-all-langpacks; all available locales will be installed into /usr/lib/locale/locale-archive.
  Run locale -a gives a very long list as output.
  Run locale -a  gives count more than 800 lines. 

NOTE: In addition to glibc-all-langpacks, individual locale package glibc-langpack-fr, maybe installed. But but as long as glibc-all-langpacks is installed, they are redundant and waste a bit of disk space, thus only the locales from /usr/lib/locale/locale-archive are used in that case.

  • While executing all the above commands, please make sure that other locales, especially custom locales added by the user, are not affected. If no custom locale installed, then please ignore below steps. Else, For example:
  1. If you have installed the locale sources with , then
  2. Create a locale with a custom name : sudo localedef --no-archive -i de_DE -f UTF-8 xx_YY.utf8
  3. There is a folder /usr/lib/locale/xx_YY.utf8/ that exists.
  4. Run locale -a , to see that such a locale is available and LC_ALL=xx_YY.UTF-8 locale -k language, shows that the language of this custom locale is "German". As long as the folder name of such a user locale does not conflict with a folder name in any of the glibc-langpack-<language> packages, there should be no problem of installing and removing any of the glibc-langpack-<languages> and/or glibc-all-langpacks packages, that user defined locale should be available no matter how many of the glibc-langpack-<language> or glibc-all-langpacks packages are installed.

Expected Results

  1. The desired individual locale for your language should be installed
  2. The system must be functioning without any locale related error