`zypper addlocale` not installing all packages?

Using zypper 1.14.61, when I run zypper addlocale nl_NL the installation starts, however, when I compare that to zypper locales -p nl_NL I miss these 3 packages:

Packages for Dutch (Netherlands) (locale 'nl_NL', requested: Requested):

S  | Name          | Description
---+---------------+-----------------------------------
i+ | glibc-locale  | Locale Data for Localized Programs
   | myspell-nl_NL | MySpell nl_NL Dictionary
   | thonny-lang   | Translations for Thonny IDE

When I do rpm -qa myspell-nl_NL it indeed is not installed. Am I doing something wrong? Or is this some kind of bug?

$ zypper locales
Code  | Language            | Requested
------+---------------------+----------
en    | English             | Fallback
nl    | Dutch               | Fallback
nl_NL | Dutch (Netherlands) | Requested

Locales

erlangen:~ # zypper locales
Code  | Language                 | Requested
------+--------------------------+----------
de    | German                   | Fallback
de_DE | German (Germany)         | Requested
en    | English                  | Fallback
en_GB | English (United Kingdom) | Requested
erlangen:~ # 

Myspell:

erlangen:~ # zypper se -is myspell
Loading repository data...
Reading installed packages...

S  | Name                  | Type    | Version      | Arch   | Repository
---+-----------------------+---------+--------------+--------+-----------------------
i+ | myspell-de            | package | 20221012-1.2 | noarch | Haupt-Repository (OSS)
i+ | myspell-de_DE         | package | 20221012-1.2 | noarch | Haupt-Repository (OSS)
i+ | myspell-dictionaries  | package | 20221012-1.2 | x86_64 | Haupt-Repository (OSS)
i+ | myspell-en            | package | 20221012-1.2 | noarch | Haupt-Repository (OSS)
i+ | myspell-en_GB         | package | 20221012-1.2 | noarch | Haupt-Repository (OSS)
i+ | myspell-en_US         | package | 20221012-1.2 | noarch | Haupt-Repository (OSS)
i+ | myspell-lightproof-en | package | 20221012-1.2 | x86_64 | Haupt-Repository (OSS)
erlangen:~ # 

If you don’t have them install them.

True, that would work. But what’s the point then of the command within zypper? The man page says the following:

To get these installed, the locale for the desired language must be marked as requested by the package manager library.

           $ zypper aloc --packages de_CH
               Request de_CH and install language dependent packages.

However, the --packages switch doesn’t work. So the documentation is not up to date? I also tried -p, no luck.

$ sudo zypper aloc --packages nl_NL
The flag --packages is not known.

To me it seems like this isn’t working as described.

Are libreoffice or seamonkey installed?

No it’s a container, those packages are not installed. Am I missing some key information from the man pages?

zypper addlocale installs packages that provide language (locale) information for the currently installed packages. I.e., packages that supplement the currently installed packages.

zypper info --provides myspell-nl_NL

could be educational.

No. Manual pages started as the reference for the available command options, not as an explanation what these options do. If manual page also provides an explanation - it is of course a nice bonus.

1 Like

If you do not understand the question do not answer.

Administration says at Tumbleweed zypper dup: Mesa package cannot be provided - #13 by hendersj

OK, guys - you need to stop making this personal and focus on the technical issues.

Command help says:

erlangen:~ # zypper addlocale --help
addlocale (aloc) [OPTIONS] <LOCALE> ...

Add given locale(s) to the list of requested locales.

  Command options:

-n, --no-packages           Do not install corresponding packages for given locale(s).

  Arguments:

Specify locale which shall be supported by the language code. Get a list of all available locales by
calling 'zypper locales --all'.

erlangen:~ # 
erlangen:~ # zypper locales
Code  | Language                 | Requested
------+--------------------------+----------
de    | German                   | Fallback
de_DE | German (Germany)         | Requested
en    | English                  | Fallback
en_GB | English (United Kingdom) | Requested
erlangen:~ # 

Please check my whole comment and put that into context. You’re not adding new information. I think the question is already answered.

Top post reads:

zypper says:

erlangen:~ #  zypper locales -p nl_NL
Loading repository data...
Reading installed packages...

Packages for Dutch (Netherlands) (locale 'nl_NL', requested: Requested):

S  | Name          | Description
---+---------------+-----------------------------------
i+ | glibc-locale  | Locale Data for Localized Programs
i  | myspell-nl_NL | MySpell nl_NL Dictionary
   | thonny-lang   | Translations for Thonny IDE
erlangen:~ # 

Again, you’re not adding new information :slight_smile: I think the question is already answered.