> From: "Petr Pisar" <ppi...@redhat.com>
> On 2016-01-08, Mark Wielaard <m...@redhat.com> wrote:
> > On Fri, 2016-01-08 at 08:31 +0000, Petr Pisar wrote:
> >> Utilizing this feature (as well as documentation stripping) is job for
> >> 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.

There's a proposal to have langpacks defined by weak and rich dependency
feature of rpm [1] without rpm macros and plugin code. That way the unneeded
langpack would be automatically erased when the package it belongs to
does not exist on your system anymore or you have removed the language.

> 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
> system.
> 
> And because DNF uses rpm for installation, I believe it should affect
> packages installed by DNF too.

exactly

[1] https://bugzilla.redhat.com/show_bug.cgi?id=1114422#c22
--
devel mailing list
devel@lists.fedoraproject.org
http://lists.fedoraproject.org/admin/lists/devel@lists.fedoraproject.org

Reply via email to