From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from shymkent.ilbers.de ([unix socket]) by shymkent (Cyrus 2.5.10-Debian-2.5.10-3+deb9u2) with LMTPA; Thu, 26 Mar 2026 14:06:01 +0100 X-Sieve: CMU Sieve 2.4 Received: from mail-ed1-f61.google.com (mail-ed1-f61.google.com [209.85.208.61]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 62QD5wWW019202 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 26 Mar 2026 14:05:58 +0100 Received: by mail-ed1-f61.google.com with SMTP id 4fb4d7f45d1cf-66208bad0f1sf912881a12.0 for ; Thu, 26 Mar 2026 06:05:58 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1774530353; cv=pass; d=google.com; s=arc-20240605; b=VNkehKoLzSy6yl5Fg6c9rDSSZhoo27pCO/7Nv//kmn5kAVFvk1iyumiApipnWgJNp2 VchqHTvNw+aWtOWZrU6X/9oaPyBxE7vKMn+LIb1sRn+uh2SAEf5Kfj1VnzNBO6REJEiU FNmmUyrVD+ZmVhmkafo1E4hA694ccLz102ijwFxwQnOYZEhM2QVaJl859wTfbnNwMwMi kkQW+UzWOcoSRSDLSEg0Krx2ybTMqTC4caUEyQQC3i5FVJSSMCOZbdTAc+xEjoJf5s2P TbH9IhwZU8h2NyD0LJVOZALEQgBB+XWB+VB5m2FUzDra/TvjR6xu0vItBfJTgq0xPGsg Di/w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :sender:dkim-signature; bh=oddtwDOkgErGQ1hYGLzFcCUJw21fNUV1/o9LD+8Iwo4=; fh=ylaXik9uSXy6nrGQerRib9lsJnOkVz1ITj0ayf+CFUQ=; b=gEDQA7B5659qkVFKHmfhhmT05Tj22RRpg4D1/Ndh9l345QrDdgUmj+jd8Viub3bSD9 3wTFOzX5evaFaTiOG2laVdwjzqR22LxJWIRXu+TkTIu4gYwCTUnB9YLrQYxLAjy+QXnZ 2JeFzshlsOtEC16jbRZ8ps5DGyjX23Zy+vYIXBvNbXTObFepUvimaEj8tmzheYR+UQqf YmujGY/3/YipxawU2tRioyhPJ5D0NESsg3BXDQTGIm73vvax0Rwhbnu/ddVL6SPY76dX 2uUPGkWweMk2yBfvYlzJE7NBMbQbeqDZgdt8ijLt3CHxqfmfFnKkDjd/kIfKJ5ZDYW1X s1xQ==; darn=ilbers.de ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of wzh@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=wzh@ilbers.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20251104; t=1774530353; x=1775135153; darn=ilbers.de; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:x-original-authentication-results :x-original-sender:in-reply-to:from:content-language:references:cc :to:subject:user-agent:mime-version:date:message-id:sender:from:to :cc:subject:date:message-id:reply-to; bh=oddtwDOkgErGQ1hYGLzFcCUJw21fNUV1/o9LD+8Iwo4=; b=eNVrWYDnd+SSeZsrSG8wDzCXi6lLDjhORWwZgmMm81DI6jQtRGXxLO/Ylth1kQ0Col IMfFCtXewBmqsjueWFgGG5YzDvbm1h41P4PTes8Uu9SnZU3zEKN05+cCPYnwPiPdb9nC P0+Iu0j5d99h6bvkK0Zhzkxlpv52T8qs8OiM2/VXxnVUqWvAUjbFaLR1xIWclEwLbpx+ vXaKxbbciutsc3LDSnZVWi91Z2xQqGZVnOLuqCCgqjFC/fU0rCSoIMo6+S7KX1l8yeJc HnvSwxjQ5HgLgtuV/igscvBZk60kdKL37k6SM8HPcVAVp28IZ9SV5taHQVoss0Hsnm2E pbDg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1774530353; x=1775135153; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender:in-reply-to :from:content-language:references:cc:to:subject:user-agent :mime-version:date:message-id:x-beenthere:x-gm-message-state:sender :from:to:cc:subject:date:message-id:reply-to; bh=oddtwDOkgErGQ1hYGLzFcCUJw21fNUV1/o9LD+8Iwo4=; b=lv63wblHImkpxbptGMG34uuh+poNt+tYIXBaJFUJ5hCsopcs+YBmuZ0U+NeQRvWQ7R 1oS0XzZabgBJvUxnnzZiudEN5fck3aozjrtLaQIDYF0WQBHuHkKssj9KQ4J+Ch6Zs0/8 Pjdl6LzXz4qes6F21wOuNE9vRljhrmoUC6HF2vSws/IJXrwcQ/rBgYQz8VIpvu+aIyPA paFUd83aoy4fu/AV4rCV1o7jkiiastA8XpBoEABnEXraKhf8l0ZCyU9WB+E4dfcUBtDr eTCvPHwQaZQm0r/pCKarfGJLmZtYyNrQvpoCTrlj2tI56CLvmiP2OaTz6TKlA7VKmKd6 jCIg== Sender: isar-users@googlegroups.com X-Forwarded-Encrypted: i=2; AJvYcCXi4CFg4Qivch1uxu3RNr0yN32LU7M/kxfgOP4quxuflADKKii67oaef2QcrJF97oCFvr43@ilbers.de X-Gm-Message-State: AOJu0YyFumRYKVuj/wo0Ltdk+gg7zaKoF7DNg58MdoVm9ESMlZz9+iZS TiWyqwz8MYllUP26h6b8L3YuRU2Bk6F4i/eyMbTRPouK8kK0kUdh7Ba7 X-Received: by 2002:a50:ee0e:0:b0:66a:d551:16f1 with SMTP id 4fb4d7f45d1cf-66b07e7e3f7mr765820a12.5.1774530352817; Thu, 26 Mar 2026 06:05:52 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com; h="AYAyTiLK3NXb7fJmlWDnF6P17ipXkNBy7MbjPveFC5nejaiH1Q==" Received: by 2002:a05:6402:35d3:b0:659:49cc:698e with SMTP id 4fb4d7f45d1cf-66adb35fe4dls476587a12.1.-pod-prod-00-eu; Thu, 26 Mar 2026 06:05:50 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCVZvPEa6q1zFz6wXoVSr/pSYE20KQmbQdm+azZpMDnbpfF1T0U+3tbgs950sHKpP6j1dCzl5OuMNszR@googlegroups.com X-Received: by 2002:a05:6402:4307:b0:669:b5be:1202 with SMTP id 4fb4d7f45d1cf-66b07eb40ddmr1297337a12.5.1774530350385; Thu, 26 Mar 2026 06:05:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1774530350; cv=none; d=google.com; s=arc-20240605; b=kDPiMaKL0kgQIdimpOWKxTGbHsvXVO8z4yYcSN9wMqNNBoHayTaMzmCAGIV2B4K0bg lYDGj03zno6hgkpGA4BmGp0X5GdnKJsw/9TJyGyr6Q7JqVcnvwXAhDBKsKY76fOCcmMv gocCI/BbLUjYiTHOtdGFLhbAJSPrcZwNyfHLqV3MLbOtWlxyjopI0UI3yFQSJm6a3YeN b3lldvyLL6eyLCTdp8uc3eGk6AFIVETZVAeQaSqnVf0z8ccGE8DJdOzjLTyFBT6CeJK1 bHUWKrLweG/A4KOrBKR863iDWUeKgpH1rVJWlSBiPZwWFfX8cekifLpXXH8xITI/TZ1a K3Gw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id; bh=mb8hso+q1Bgi52rbfKRYi1rmm6g6wH3ZyY9vSe5EmIU=; fh=SHpB8Ttqf4xaa1+CilPOZogNAoQLHQ4ysawgTXOO4TI=; b=SJ9m6qd9g3+cRFjE+JHZ1pGR/BKChPQuGeSlUIBt01PGG/OM07vU7EJ2QukKOyCrmv lDT/meAdwJxqdS+3Qb45VycbQym8LBYPRK6+MjfRdrluvQON9Pv3DIjTJLUMHYWEre8n qZELspwXG9ix4MQPahehnQlfdc2l50bhMfG7gll7vdYY52Wv/grAz4Sax5GSw7WobydR vULDKPP2CsGoG2pCjyM/Nd2U8+dE0eDfufFOqPwIu9O/X3f7ReOyge2rpK120amY2oVE hbXzCG12c4suDxibPUQg1ARK3TABSBroxd1nHvhKJ4htWuNoslzDQt6Ot5gHDXBlgAdR nEyw==; dara=google.com ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of wzh@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=wzh@ilbers.de Received: from shymkent.ilbers.de (shymkent.ilbers.de. [85.214.156.166]) by gmr-mx.google.com with ESMTPS id 4fb4d7f45d1cf-66ad5e3b8a5si37801a12.1.2026.03.26.06.05.50 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 26 Mar 2026 06:05:50 -0700 (PDT) Received-SPF: pass (google.com: domain of wzh@ilbers.de designates 85.214.156.166 as permitted sender) client-ip=85.214.156.166; Received: from [192.168.178.148] ([88.130.203.42]) (authenticated bits=0) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPSA id 62QD5nGg019196 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 26 Mar 2026 14:05:49 +0100 Message-ID: Date: Thu, 26 Mar 2026 14:05:49 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 1/1] remove all newly installed packages after localepurge To: Felix Moessbauer , isar-users@googlegroups.com Cc: christoph.steiger@siemens.com References: <20260323094521.682576-1-felix.moessbauer@siemens.com> Content-Language: en-US From: Zhihang Wei In-Reply-To: <20260323094521.682576-1-felix.moessbauer@siemens.com> Content-Type: text/plain; charset="UTF-8"; format=flowed X-Spam-Status: No, score=-4.6 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H2, RCVD_IN_RP_CERTIFIED,RCVD_IN_RP_RNBL,RCVD_IN_RP_SAFE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on shymkent.ilbers.de X-Original-Sender: wzh@ilbers.de X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of wzh@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=wzh@ilbers.de Precedence: list Mailing-list: list isar-users@googlegroups.com; contact isar-users+owners@googlegroups.com List-ID: X-Spam-Checked-In-Group: isar-users@googlegroups.com X-Google-Group-Id: 914930254986 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , X-TUID: gcyjctPR3350 Applied to next, thanks. Zhihang On 3/23/26 10:45, 'Felix Moessbauer' via isar-users wrote: > To perform the localepurge, we install the localepurge package, run the > command and then remove it again from the rootfs. In case the set of > newly installed packages intersects with the set of suggested packages > from all previously installed packages, the intersection is not removed > on autopurge (as apt internally does not track why a package was > installed). However, we want these packages to be removed, as we never > intended to install them in the first place (except for the localepurge > operation). > > We fix this by tracking which new packages will be installed when > installing localepurge and then remove exactly these. > > One example package that is affected in the base image is "perl". > > Signed-off-by: Felix Moessbauer > --- > meta/classes-recipe/image-locales-extension.bbclass | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) > > diff --git a/meta/classes-recipe/image-locales-extension.bbclass b/meta/classes-recipe/image-locales-extension.bbclass > index b6b07dba..45dcdb67 100644 > --- a/meta/classes-recipe/image-locales-extension.bbclass > +++ b/meta/classes-recipe/image-locales-extension.bbclass > @@ -69,6 +69,9 @@ __EOF__ > else > localepurge_state='p' > echo 'localepurge was not installed (removing it later)' > + # track additional packages that will be installed, as these packages might be > + # in the suggested set of other packages and by that need to be explicitly removed > + localepurge_pkgs=$(chroot '${ROOTFSDIR}' apt-get ${ROOTFS_APT_ARGS} -s localepurge 2>&1 | sed -n 's/^Inst \([^ ]*\) .*/\1/p') > chroot '${ROOTFSDIR}' apt-get ${ROOTFS_APT_ARGS} localepurge > fi > > @@ -105,7 +108,7 @@ EOSH > if [ "$localepurge_state" = 'p' ] > then > echo removing localepurge... > - chroot '${ROOTFSDIR}' apt-get autopurge --yes localepurge > + chroot '${ROOTFSDIR}' apt-get purge --yes $localepurge_pkgs > fi > EOSUDO > } -- You received this message because you are subscribed to the Google Groups "isar-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to isar-users+unsubscribe@googlegroups.com. To view this discussion visit https://groups.google.com/d/msgid/isar-users/ba047b6c-198c-4f53-ab02-7ff7d341ba8a%40ilbers.de.