Running apt-get commands (install, etc) in the Debian slim images reports that the package xz-utils can be removed by running apt-get autoremove.
Minimal demo:
❯ docker run --rm -it python:3.7.0-slim-stretch bash
root@6c3e075af8de:/# apt-get update
Get:1 http://security.debian.org/debian-security stretch/updates InRelease [94.3 kB]
Ign:2 http://deb.debian.org/debian stretch InRelease
Get:3 http://deb.debian.org/debian stretch-updates InRelease [91.0 kB]
Get:4 http://deb.debian.org/debian stretch Release [118 kB]
Get:5 http://security.debian.org/debian-security stretch/updates/main amd64 Packages [376 kB]
Get:6 http://deb.debian.org/debian stretch Release.gpg [2434 B]
Get:7 http://deb.debian.org/debian stretch-updates/main amd64 Packages [11.6 kB]
Get:8 http://deb.debian.org/debian stretch/main amd64 Packages [7099 kB]
Fetched 7792 kB in 2s (2697 kB/s)
Reading package lists... Done
root@6c3e075af8de:/# apt-get autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
xz-utils
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
After this operation, 528 kB disk space will be freed.
Do you want to continue? [Y/n]
This package should be removed once Python is compiled. I don't really know how to do that because the apt-get commands in the Dockerfile are now quite complicated. It seems like apt needs the repo lists before it knows it can purge xz-utils.
Running apt-get commands (install, etc) in the Debian slim images reports that the package
xz-utilscan be removed by runningapt-get autoremove.Minimal demo:
This package should be removed once Python is compiled. I don't really know how to do that because the
apt-getcommands in the Dockerfile are now quite complicated. It seems like apt needs the repo lists before it knows it can purgexz-utils.