Bug 1610757

Summary: RFE: Need an option to set install_langs value for installation (chroot/early install/bootstrap)
Product: [Fedora] Fedora Reporter: Neal Gompa <ngompa13>
Component: dnfAssignee: rpm-software-management
Status: NEW --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: fedoraproject, marcus-schaefer, massi.ergosum, mblaha, m.novosyolov, packaging-team-maint, rpm-software-management, vmukhame
Target Milestone: ---Keywords: Triaged
Target Release: ---Flags: fedora-admin-xmlrpc: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1665453    

Description Neal Gompa 2018-08-01 11:41:45 UTC
Description of problem:
When using DNF as an engine to set up a Linux system (through an installer like DrakX or Anaconda, or through appliance image creation tools like livecd-tools or kiwi), it's not possible to get %_install_langs during initial bootstrap phases because the host rpm is used in that circumstance rather than the target rpm.

In YUM, there's an "override_install_langs" option in yum.conf that can be used to do this, and this can also be passed via the command line to have YUM set this when it executes so that it's respected no matter which RPM is invoked.

Can this please be added to DNF so that tools like appliance-creator, kiwi, etc. can leverage it?

Version-Release number of selected component (if applicable):
3.1.0-1.fc29

Additional info:

KIWI RFE for this: https://github.com/SUSE/kiwi/issues/771

Comment 1 Neal Gompa 2018-08-02 09:29:39 UTC
For what it's worth, livecd-tools / appliance-tools use DNF's API, while kiwi uses DNF's CLI. It's important that this is configurable through both means.

Comment 2 Mikhail Novosyolov 2022-01-05 09:16:29 UTC
I think it is a duplicate of https://bugzilla.redhat.com/show_bug.cgi?id=1673333
+1 for this feature, I wanted to strip locales installed into rootfs when building locales