APT /etc/apt/apt.conf.d/docker-clean

Original 📋 Ubuntu 22.04 LTS (Jammy Jellyfish) 3 lines

Works On

Viewing:
Ubuntu 22.04 LTS (Jammy Jellyfish)
Same on:
Ubuntu 18.04 LTS (Bionic Beaver) Ubuntu 20.04 LTS (Focal Fossa) Ubuntu 24.04 LTS (Noble Numbat)
Other versions:

Details

Size
3 lines
MD5
b02a49af378158c2c45158e991f9a987
SHA256
49d72455b2eaa50fa4b09b3ecffff753f3b90193266b2999f30e3f696403fde2
/etc/apt/apt.conf.d/docker-clean
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 "";

Copy & Paste

curl:
curl https://exampleconfig.com/api/v1/config/original/b02a49af378158c2c45158e991f9a987?hint=docker-clean
wget:
wget -O docker-clean https://exampleconfig.com/api/v1/config/original/b02a49af378158c2c45158e991f9a987?hint=docker-clean

For AI Agents

<prompt><role>DevOps agent</role><source url='https://exampleconfig.com/api/v1/config/original/b02a49af378158c2c45158e991f9a987?hint=docker-clean' /><config><app>APT</app><os>Ubuntu 22.04 LTS (Jammy Jellyfish)</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.

Install APT

Debian

sudo apt update && sudo apt install apt

Ubuntu

sudo apt update && sudo apt install apt

File Location

File Path
/etc/apt/apt.conf.d/docker-clean
Directory
/etc/apt/apt.conf.d/
Significance
System-wide configuration directory
Description
Files in /etc/ contain system-wide configuration settings that affect all users.

FAQ

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 22.04 LTS (Jammy Jellyfish). 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 22.04 LTS (Jammy Jellyfish).

Can I use this for APT troubleshooting?

Yes. Diff it against yours to find drift, then restore only the sections you need.