From: Daan De Meyer Date: Fri, 28 Apr 2023 09:21:20 +0000 (+0200) Subject: centos: Make sure glibc-all-langpacks doesn't get installed X-Git-Tag: v15~188^2~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=45490255e800c3880bd341bf9c5764f32a3a8691;p=thirdparty%2Fmkosi.git centos: Make sure glibc-all-langpacks doesn't get installed On CentOS 8, glibc-all-langpacks is pulled in as a dependency of filesystem. Let's make sure dnf prefers glibc-minimal-langpack by installing it explicitly. --- diff --git a/mkosi/distributions/centos.py b/mkosi/distributions/centos.py index 6750b88c3..f6173fe48 100644 --- a/mkosi/distributions/centos.py +++ b/mkosi/distributions/centos.py @@ -78,7 +78,8 @@ class CentosInstaller(DistributionInstaller): @classmethod def install(cls, state: MkosiState) -> None: - cls.install_packages(state, ["filesystem"], apivfs=False) + # Make sure glibc-minimal-langpack is installed instead of glibc-all-langpacks. + cls.install_packages(state, ["filesystem", "glibc-minimal-langpack"], apivfs=False) # On Fedora, the default rpmdb has moved to /usr/lib/sysimage/rpm so if that's the case we need to # move it back to /var/lib/rpm on CentOS.