When should I use this docker-clean?
Use it to restore a missing default, confirm what shipped, or diff against your current APT config.
DPkg::Post-Invoke { "rm -f /var/cache/apt/archives/*.deb /var/cache/apt/archives/partial/*.deb /var/cache/apt/*.bin || true"; };
APT::Update::Post-Invoke { "rm -f /var/cache/apt/archives/*.deb /var/cache/apt/archives/partial/*.deb /var/cache/apt/*.bin || true"; };
Dir::Cache::pkgcache ""; Dir::Cache::srcpkgcache "";
curl https://exampleconfig.com/api/v1/config/original/b02a49af378158c2c45158e991f9a987?hint=docker-clean
wget -O docker-clean https://exampleconfig.com/api/v1/config/original/b02a49af378158c2c45158e991f9a987?hint=docker-clean
<prompt><role>DevOps agent</role><source url='https://exampleconfig.com/api/v1/config/original/b02a49af378158c2c45158e991f9a987?hint=docker-clean' /><config><app>APT</app><os>Ubuntu 24.04 LTS (Noble Numbat)</os><location>/etc/apt/apt.conf.d/docker-clean</location><lines>3</lines><md5>b02a49af378158c2c45158e991f9a987</md5><sha256>49d72455b2eaa50fa4b09b3ecffff753f3b90193266b2999f30e3f696403fde2</sha256></config></prompt>
Paste into Claude, ChatGPT, or any AI assistant.
sudo apt update && sudo apt install apt
sudo apt update && sudo apt install apt
When should I use this docker-clean?
Use it to restore a missing default, confirm what shipped, or diff against your current APT config.
How do I restore APT defaults?
Download the file, back up the current one in /etc/apt/apt.conf.d/docker-clean, replace it, then reload or restart APT.
Is docker-clean safe for production?
It is the vendor default for Ubuntu 24.04 LTS (Noble Numbat). Treat it as a baseline and review security and performance settings before production use.
How does this differ from other OS versions?
Defaults vary by distro and version. This copy matches Ubuntu 24.04 LTS (Noble Numbat).
Can I use this for APT troubleshooting?
Yes. Diff it against yours to find drift, then restore only the sections you need.