RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1192870 - [ALL_LANG] No output of Installed languages for yum langlist and No langpacks to install for yum langinstall
Summary: [ALL_LANG] No output of Installed languages for yum langlist and No langpacks...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: yum-langpacks
Version: 7.1
Hardware: x86_64
OS: Linux
high
high
Target Milestone: rc
: ---
Assignee: Parag Nemade
QA Contact: QE Internationalization Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-02-16 02:42 UTC by Lijun Li
Modified: 2016-11-04 03:31 UTC (History)
5 users (show)

Fixed In Version: yum-langpacks-0.4.2-7.el7
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-11-04 03:31:12 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Fix to add informative message when installed_langpacks file not available (805 bytes, patch)
2015-02-24 13:52 UTC, Parag Nemade
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2016:2313 0 normal SHIPPED_LIVE yum-langpacks bug fix and enhancement update 2016-11-03 13:41:43 UTC

Description Lijun Li 2015-02-16 02:42:40 UTC
Description of problem:
[ALL_LANG] No output of Installed languages for yum langlist and No langpacks to install for yum langinstall

Version-Release number of selected component (if applicable):
yum-langpacks-0.4.2-3.el7.noarch

How reproducible:
100%

Steps to Reproduce:
# rpm -q yum-langpacks
yum-langpacks-0.4.2-3.el7.noarch
# locale
LANG=ja_JP.UTF-8
LC_CTYPE="ja_JP.UTF-8"
LC_NUMERIC="ja_JP.UTF-8"
LC_TIME="ja_JP.UTF-8"
LC_COLLATE="ja_JP.UTF-8"
LC_MONETARY="ja_JP.UTF-8"
LC_MESSAGES="ja_JP.UTF-8"
LC_PAPER="ja_JP.UTF-8"
LC_NAME="ja_JP.UTF-8"
LC_ADDRESS="ja_JP.UTF-8"
LC_TELEPHONE="ja_JP.UTF-8"
LC_MEASUREMENT="ja_JP.UTF-8"
LC_IDENTIFICATION="ja_JP.UTF-8"
LC_ALL=
# yum langlist
読み込んだプラグイン:langpacks, product-id, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Installed languages:
	
	
	
	
	
	
	
	
	
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^No output for Installed languages.
# yum langavailable ja
読み込んだプラグイン:langpacks, product-id, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
ja is available

# yum langinfo ja
読み込んだプラグイン:langpacks, product-id, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Language-Id=ja
  autocorr-ja
  kde-l10n-Japanese
  libreoffice-langpack-ja
  man-pages-ja

# yum langinstall ja
読み込んだプラグイン:langpacks, product-id, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
No langpacks to install for: ja
[root@dhcp-136-206 ~]# yum langinstall fr
読み込んだプラグイン:langpacks, product-id, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
No langpacks to install for: fr
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^No langpacks to install for.
Actual results:
[ALL_LANG] No output of Installed languages for yum langlist and No langpacks to install for yum langinstall

Expected results:
Those installed langs and packages should be showed up.

Additional info:

Comment 2 Parag Nemade 2015-02-16 02:51:41 UTC
Provide information. 
1) What RHEL7.1 tree used for this testing?
2) The machine on which this bug is produced, What was base language used in anaconda for installation?

Comment 3 Lijun Li 2015-02-16 03:01:10 UTC
(In reply to Parag from comment #2)
> Provide information. 
> 1) What RHEL7.1 tree used for this testing?
With latest client rc build : .../pub/rhel/rel-eng/latest-RHEL-7/compose/Client/x86_64/os/

> 2) The machine on which this bug is produced, What was base language used in
> anaconda for installation?
On virtual machine and with ja_JP language for the anaconda installation.

Thanks,
Robert

Comment 4 Parag Nemade 2015-02-16 04:35:16 UTC
I think we are assuming that the languages in which you have installed desktop are the base languages and we don't need to store information about it in /var/lib/yum/plugins/langpacks/installed_langpacks file. We even will not need to remove those langpacks is the assumption yum-langpacks is following.

Based on above information, all things reported in bug description are expected.

Comment 5 Jens Petersen 2015-02-17 05:59:31 UTC
So apparently installed_langpacks is not populated by anaconda.
This seems slightly inconistent.

(Naively I would have expected langlist to list the langs that have langpacks installed, or default lang used by yum-langpacks.)

Lijun: if this is not a regression, I think we can move this to 7.2.

Comment 6 Lijun Li 2015-02-17 06:14:33 UTC
(In reply to Jens Petersen from comment #5)
> So apparently installed_langpacks is not populated by anaconda.
> This seems slightly inconistent.
> 
> (Naively I would have expected langlist to list the langs that have
> langpacks installed, or default lang used by yum-langpacks.)
> 
> Lijun: if this is not a regression, I think we can move this to 7.2.

I think yes we can move it to 7.2.

Comment 7 Parag Nemade 2015-02-24 13:52:07 UTC
Created attachment 994712 [details]
Fix to add informative message when installed_langpacks file not available

Comment 8 Parag Nemade 2015-02-24 13:52:33 UTC
I am still not convinced for adding base languages in installed_langpacks but maybe I will visit this again sometime later when we start next development cycle.

For now proposing langlist command fix that will make sure installed_langpacks file exist on the system else print "No langpacks installed".

Comment 11 Whitney Chadwick 2016-04-12 14:55:10 UTC
Set PM Ack to +

Comment 12 Parag Nemade 2016-04-22 16:09:01 UTC
Fixed in yum-langpacks-0.4.2-5.el7

Comment 14 sandeep shedmake 2016-07-19 07:19:21 UTC
[root@node1 test]# cat /etc/yum/pluginconf.d/langpacks.conf
[main]
enabled=1

# What langpacks to install is all of:
# - any previously installed langpacks (stored in /var/lib/yum/plugins/langpacks)
# - any languages specified by $LANGUAGE
# - any langpacks listed in langpack_locales below
# -- if this variable is empty, the value of $LANG

#langpack_locales = ja_JP, zh_CN, mr_IN
# Added by Anaconda
langpack_locales=zh_CN.UTF-8, de_DE.UTF-8, es_ES.UTF-8, fr_FR.UTF-8, it_IT.UTF-8, ja_JP.UTF-8, ko_KR.UTF-8, mr_IN.UTF-8, pt_BR.UTF-8
[root@node1 test]# yum langinfo ml
已加载插件:langpacks, product-id, search-disabled-repos, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Language-Id=ml
  hunspell-ml
  hyphen-ml
  libreoffice-langpack-ml
  Red_Hat_Enterprise_Linux-Release_Notes-7-ml-IN

[root@node1 test]# yum langinstall ml
已加载插件:langpacks, product-id, search-disabled-repos, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
--> 正在检查事务
---> 软件包 Red_Hat_Enterprise_Linux-Release_Notes-7-ml-IN.noarch.0.3-1.el7 将被 安装
---> 软件包 hunspell-ml.noarch.0.0.1-10.el7 将被 安装
---> 软件包 hyphen-ml.noarch.1.0.7.0-4.el7 将被 安装
---> 软件包 libreoffice-langpack-ml.x86_64.1.5.0.6.2-2.el7 将被 安装
--> 解决依赖关系完成

================================================================================
 Package                                    架构   版本            源      大小
================================================================================
正在安装:
 Red_Hat_Enterprise_Linux-Release_Notes-7-ml-IN
                                            noarch 3-1.el7         Client 118 k
 hunspell-ml                                noarch 0.1-10.el7      Client 724 k
 hyphen-ml                                  noarch 1:0.7.0-4.el7   Client 9.4 k
 libreoffice-langpack-ml                    x86_64 1:5.0.6.2-2.el7 Client 491 k

事务概要
================================================================================
安装  4 软件包

总下载量:1.3 M
安装大小:8.4 M
Is this ok [y/d/N]: y
Downloading packages:
(1/4): Red_Hat_Enterprise_Linux-Release_Notes-7-ml-IN-3-1. | 118 kB   00:01     
(2/4): hunspell-ml-0.1-10.el7.noarch.rpm                   | 724 kB   00:02     
(3/4): hyphen-ml-0.7.0-4.el7.noarch.rpm                    | 9.4 kB   00:00     
(4/4): libreoffice-langpack-ml-5.0.6.2-2.el7.x86_64.rpm    | 491 kB   00:02     
--------------------------------------------------------------------------------
总计                                               275 kB/s | 1.3 MB  00:04     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  正在安装    : 1:hyphen-ml-0.7.0-4.el7.noarch                              1/4 
  正在安装    : hunspell-ml-0.1-10.el7.noarch                               2/4 
  正在安装    : 1:libreoffice-langpack-ml-5.0.6.2-2.el7.x86_64              3/4 
  正在安装    : Red_Hat_Enterprise_Linux-Release_Notes-7-ml-IN-3-1.el7.no   4/4 
Client/productid                                         | 1.6 kB     00:00     
Server/productid                                         | 1.6 kB     00:00     
Workstation/productid                                    | 1.6 kB     00:00     
  验证中      : hunspell-ml-0.1-10.el7.noarch                               1/4 
  验证中      : 1:libreoffice-langpack-ml-5.0.6.2-2.el7.x86_64              2/4 
  验证中      : 1:hyphen-ml-0.7.0-4.el7.noarch                              3/4 
  验证中      : Red_Hat_Enterprise_Linux-Release_Notes-7-ml-IN-3-1.el7.no   4/4 

已安装:
  Red_Hat_Enterprise_Linux-Release_Notes-7-ml-IN.noarch 0:3-1.el7               
  hunspell-ml.noarch 0:0.1-10.el7                                               
  hyphen-ml.noarch 1:0.7.0-4.el7                                                
  libreoffice-langpack-ml.x86_64 1:5.0.6.2-2.el7                                

Language packs installed for: ml
[root@node1 test]# ls -l /var/lib/yum/plugins/langpacks/installed_langpacks 
-rw-r--r--. 1 root root 3 7月  19 12:23 /var/lib/yum/plugins/langpacks/installed_langpacks
[root@node1 test]# cat /var/lib/yum/plugins/langpacks/installed_langpacks 
ml
[root@node1 test]# cat /etc/yum/pluginconf.d/langpacks.conf
[main]
enabled=1

# What langpacks to install is all of:
# - any previously installed langpacks (stored in /var/lib/yum/plugins/langpacks)
# - any languages specified by $LANGUAGE
# - any langpacks listed in langpack_locales below
# -- if this variable is empty, the value of $LANG

#langpack_locales = ja_JP, zh_CN, mr_IN
# Added by Anaconda
langpack_locales=zh_CN.UTF-8, de_DE.UTF-8, es_ES.UTF-8, fr_FR.UTF-8, it_IT.UTF-8, ja_JP.UTF-8, ko_KR.UTF-8, mr_IN.UTF-8, pt_BR.UTF-8
[root@node1 test]# rpm -qf /var/lib/yum/plugins/langpacks/installed_langpacks
文件 /var/lib/yum/plugins/langpacks/installed_langpacks 不属于任何软件包
[root@node1 test]# yum langlist
已加载插件:langpacks, product-id, search-disabled-repos, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Installed languages:
	Malayalam

[root@node1 test]# 
[root@node1 test]# rpm -q yum-langpacks
yum-langpacks-0.4.2-7.el7.noarch
[root@node1 test]# 


As per Comment 4, with yum-langpacks-0.4.2-7.el7.noarch:
- 'yum langinstall <LANG>' works as expected
- 'yum langlist' would only work if '/var/lib/yum/plugins/langpacks/installed_langpacks' file exist, else 'No langpacks installed' would be visible on the console as notified in Comment 7 and Comment 8

Comment 17 errata-xmlrpc 2016-11-04 03:31:12 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2016-2313.html


Note You need to log in before you can comment on or make changes to this bug.