From Fedora Project Wiki

Revision as of 18:16, 11 April 2016 by Adamwill (talk | contribs) (Adamwill moved page QA:Langpacks to QA:Testcase dnf langpacks: More standard test case name)

Description

This test case tests whether langpacks can be installed and whether it can show available language translations for your current locale.

Setup

  • Check if your system has langpacks-<current_locale_code> package installed by executing:
rpm -qa langpacks*
  • If the package is not installed install it using dnf:
    dnf install langpacks-<required_langpacks_locale_code>

How to test

  • Following steps are to test langpacks by using dnf commands
1) To list the already installed language support, run the following command
dnf list installed "langpacks*"
2) To check if any language support is available for your language, run the following command
dnf list available "langpacks*"
3) To list what packages will get installed for any language, run the following command
dnf repoquery --whatsupplements langpacks-<locale_code>
4) To add new language support, run the following command
dnf install langpacks-<locale_code>
5) To remove installed language support, run the following command
dnf remove langpacks-<locale_code>

Expected Results

For testing langpacks with rpm weak dependencies by adding/removing language support

You need to use meta-packages for langpacks.
1) To check if French language support is available use command
dnf list available langpacks-fr
If you see langpacks-fr package listed in the output then you have French language support available for installation.


2) To list what packages will get installed for French language, run following command
dnf repoquery --whatsupplements langpacks-fr
you will see output like

3) To add French language support
dnf install langpacks-fr
4) To remove installed French language support run following command
dnf remove langpacks-fr