Currently, dnf-langpacks configuration is stored in /var/lib/yum/plugins/langpacks/installed_langpacks. Given that /var/lib/yum/plugins is owned by yum and yum is supposed to go away for F22, this is not ideal. Please provide a way to configure dnf-langpacks that does not depend on yum.
The langpacks configuration part is still missing as we need some feature to be developed first in dnf. I am waiting for it. Once its done I will add code to handle this in dnf-langpacks.
The /var/lib/yum/plugins/langpacks/installed_langpacks is just storing the installed langpacks information and not used by any other code in Fedora 22. This file is needed as if user is using both the yum-langpacks or dnf-langpacks then the system remain consistent with the installed langpack packages information.
Like we have /etc/yum/pluginconf.d/langpacks.conf configuration file, dnf-langpacks also need to add /etc/dnf/plugins/langpacks.conf file but this will work only when bug 1114422 gets fixed.
I have added langpacks.conf file in dnf-langpacks-0.7.0 but its like dummy file. The functionality that I need from dnf API's to get the langpacks.conf working is pending in bug 1114422.
Note: dnf-langpacks now installing /etc/dnf/plugins/langpacks.conf file. Anaconda need to write languages to this file similarly it is doing for yum-langpacks.
Then Anaconda will only writing the added languages to /etc/dnf/plugins/langpacks.conf file which we need but the packages for those languages will not get installed due to blocking bug 1114422.
I think we need this to be fixed soon and before F22 Final Freeze. May I know what changes are required from dnf-langpacks side?
I got a bug comment where user experienced nothing is written to /etc/dnf/plugins/langpacks.conf file. If I will get this coded in dnfpayload.py then I can further work on other dnf-langpacks bugs.
If dnf-langpacks is able to use the config file in /etc/dnf/plugins, and if that path can be overriden by the pluginconfpath setting in https://github.com/rpm-software-management/dnf/pull/240, then that should be all that's needed from dnf-langpacks. There are a lot of issues with dnfpayload.py right now so the langpack configuration has not been a priority.
Can you please share the update on this issue? For Fedora 22, dnf was new so we missed this bug fix, fair enough, but we need this implemented in Fedora 23 now. Two weeks back we had discussion with Jiri Eischmann who expressed the need to have langpacks plugin working. This will help people to get language translations for example when someone installs a desktop in Czech and then starts libreoffice he will not see its UI in Czech.
Also, currently dnf is installing /etc/dnf/plugins/langpacks.conf file, do you want this file moved to some other location? That is the standard location and also dnf.conf is installed under /etc directory.
Note dnf langpacks plugin now reads langpacks.conf file.
I confirm that this bug is fixed now. Thank you very much David for helping to add langpacks code for dnf-langpacks in anaconda.
Tested with Fedora 23 Alpha Server install DVD that selected additional languages which are getting written in /etc/dnf/plugins/langpacks.conf file.