On 2016-01-08, Mark Wielaard <mjw(a)redhat.com> wrote:
On Fri, 2016-01-08 at 08:31 +0000, Petr Pisar wrote:
> RPM has a run-time macro allowing to exclude localization files from
> installing them. That's the reason why the message catalog files, if
> packaged properly, carry a language attribute in the binary RPM package
Is there a description of this so I can check I did it correctly for my
There was rpm2xml (or something like that) tool that listed RPM package
content in XML format and it printed file attributes that carry the
language value. But the tool was removed from rpm. I cannot remember any
other way how to obtain the data.
Basically, if your spec file uses %find_lang to gather and mark the
language attributes, the package should be fine.
> Utilizing this feature (as well as documentation stripping) is
> a package manager. For DNF.
How does DNF do this?
How would I (de)install/scrub (un)needed translations from my system?
I think DNF does not support it.
But it should work on rpm level. See %_install_langs in
/usr/lib/rpm/macros. I guess if you set the macro to empty or `C' value,
and reinstall a package, its locale files should disappear from the file
And because DNF uses rpm for installation, I believe it should affect
packages installed by DNF too.