Devuan bug report logs - #434
command to delete downloaded package lists and package cache, for container building

Package: apt; Severity: wishlist; Reported by: Simon Richter <sjr@debian.org>; Done: Simon Richter <sjr@debian.org>; Maintainer for apt is Andreas Messer <andi@bastelmap.de>.

Message received at 434-done@bugs.devuan.org:


Received: (at 434-done) by bugs.devuan.org; 29 Apr 2020 13:10:04 +0000
Return-Path: <Simon.Richter@hogyros.de>
Delivered-To: devuanbugs@dyne.org
Received: from tupac3.dyne.org [195.169.149.119]
	by doc.devuan.org with IMAP (fetchmail-6.4.0.beta4)
	for <debbugs@localhost> (single-drop); Wed, 29 Apr 2020 13:10:04 +0000 (UTC)
Received: from psionic.psi5.com (psionic.psi5.com [212.83.56.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by vm6.ganeti.dyne.org (Postfix) with ESMTPS id 1B074F60BE8
	for <434-done@bugs.devuan.org>; Wed, 29 Apr 2020 15:03:25 +0200 (CEST)
Received: by psionic.psi5.com (Postfix, from userid 1002)
	id 959FDE109B; Wed, 29 Apr 2020 15:03:24 +0200 (CEST)
Date: Wed, 29 Apr 2020 15:03:24 +0200
From: Simon Richter <sjr@debian.org>
To: 434-done@bugs.devuan.org
Subject: sorry, wrong BTS
Message-ID: <20200429130324.GA30643@psi5.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.5.21 (2010-09-15)
X-Spam-Status: No, score=0.2 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS,
	SPF_PASS autolearn=disabled version=3.4.2
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on tupac3.dyne.org

Hi,

this should have gone to the Debian BTS, as it is a wishlist bug and not Devuan specific.

   Simon

Notification sent to Simon Richter <sjr@debian.org>:
bug acknowledged by developer. Full text available.
Reply sent to Simon Richter <sjr@debian.org>:
You have taken responsibility. Full text available.

Message received at submit@bugs.devuan.org:


Received: (at submit) by bugs.devuan.org; 29 Apr 2020 10:10:01 +0000
Return-Path: <sjr@debian.org>
Delivered-To: devuanbugs@dyne.org
Received: from tupac3.dyne.org [195.169.149.119]
	by doc.devuan.org with IMAP (fetchmail-6.4.0.beta4)
	for <debbugs@localhost> (single-drop); Wed, 29 Apr 2020 10:10:01 +0000 (UTC)
Received: from [127.0.1.1] (business-90-187-105-37.pool2.vodafone-ip.de [90.187.105.37])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by vm6.ganeti.dyne.org (Postfix) with ESMTPS id 0CEE8F60B88
	for <submit@bugs.devuan.org>; Wed, 29 Apr 2020 11:59:49 +0200 (CEST)
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
From: Simon Richter <sjr@debian.org>
To: Devuan Bug Tracking System <submit@bugs.devuan.org>
Subject: command to delete downloaded package lists and package cache, for container building
Message-ID: <158815438617.937.12026990781728257684.reportbug@debian>
X-Mailer: reportbug 7.5.3+devuan3
Date: Wed, 29 Apr 2020 11:59:46 +0200
X-Spam-Status: No, score=0.6 required=5.0 tests=HELO_MISC_IP,RDNS_DYNAMIC
	autolearn=disabled version=3.4.2
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on tupac3.dyne.org

Package: apt
Version: 1.8.2
Severity: wishlist

Hi,

I'm trying to build a few Docker containers for various apps, and since I'm
adding packages, I need to have package lists available during the
container build, but I'd like to remove them before packing the final
application container.

I can obviously do that manually, which requires me to know apt internals.

It would be nice if there was a command to remove the downloaded lists and
the indexes (although the latter can also be removed by just dropping all
files below /var/cache, which would be allowed in any case).

   Simon

-- System Information:
Distributor ID:	Debian
Description:	Devuan GNU/Linux 3 (beowulf)
Release:	3
Codename:	beowulf
Architecture: x86_64

Kernel: Linux 4.19.0-8-amd64 (SMP w/40 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)
LSM: AppArmor: enabled

Versions of packages apt depends on:
ii  adduser                 3.118
ii  debian-archive-keyring  2019.1
ii  gpgv                    2.2.12-1+deb10u1
ii  libapt-pkg5.0           1.8.2
ii  libc6                   2.28-10
ii  libgcc1                 1:8.3.0-6
ii  libgnutls30             3.6.7-4+deb10u2
ii  libseccomp2             2.3.3-4
ii  libstdc++6              8.3.0-6

Versions of packages apt recommends:
ii  ca-certificates  20190110

Versions of packages apt suggests:
pn  apt-doc         <none>
ii  aptitude        0.8.11-7
ii  dpkg-dev        1.19.7
ii  gnupg           2.2.12-1+deb10u1
ii  powermgmt-base  1.34

-- no debconf information

Acknowledgement sent to Simon Richter <sjr@debian.org>:
New bug report received and forwarded. Copy sent to Andreas Messer <andi@bastelmap.de>. Full text available.
Report forwarded to devuan-bugs@lists.dyne.org, Andreas Messer <andi@bastelmap.de>:
bug#434; Package apt. Full text available.

Devuan BTS -- Powered by Debian bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.

Devuan Bugs Owner <owner@bugs.devuan.org>.
Last modified: Wed, 15 Jul 2020 08:39:01 UTC