[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#959093: command to delete downloaded package lists and package cache, for container building



Package: apt
Version: 2.0.2
Severity: wishlist
Tags: upstream

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:
Debian Release: bullseye/sid
  APT prefers testing-debug
  APT policy: (500, 'testing-debug'), (500, 'testing')
Architecture: ppc64el (ppc64le)

Kernel: Linux 5.5.0-2-powerpc64le (SMP w/64 CPU cores)
Kernel taint flags: TAINT_UNSIGNED_MODULE
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 /usr/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.20-1
ii  libapt-pkg6.0           2.0.2
ii  libc6                   2.30-4
ii  libgcc-s1               10-20200418-1
ii  libgnutls30             3.6.13-2
ii  libseccomp2             2.4.3-1+b1
ii  libstdc++6              10-20200418-1
ii  libsystemd0             245.5-1

Versions of packages apt recommends:
ii  ca-certificates  20190110

Versions of packages apt suggests:
pn  apt-doc         <none>
ii  aptitude        0.8.12-3
ii  dpkg-dev        1.19.7
ii  gnupg           2.2.20-1
ii  powermgmt-base  1.36

-- no debconf information


Reply to: