From Fedora Project Wiki

(basic commands added)
(added example)
Line 28: Line 28:
{{admon/note|You need to use meta-packages for langpacks.}}
{{admon/note|You need to use meta-packages for langpacks.}}


:1) To check if French language support is available use command
::<pre>dnf list available langpacks-fr</pre>
:: 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
::<pre>dnf repoquery --whatsupplements langpacks-fr</pre>
::you will see output like
<pre>
</pre>
:3) To add French language support
::<pre>dnf install langpacks-fr</pre>
:4) To remove installed French language support run following command
::<pre>dnf remove langpacks-fr</pre>
}}
}}


[[Category:I18n_Desktop]]
[[Category:I18n_Desktop]]

Revision as of 09:23, 1 February 2016

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

Note.png
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