When should I use this 01autoremove?
Restore it. Compare it. Start clean.
curl https://exampleconfig.com/api/v1/config/original/ab6540f7278a05a4b7f9e58afcaa5f46?hint=01autoremove
wget -O 01autoremove https://exampleconfig.com/api/v1/config/original/ab6540f7278a05a4b7f9e58afcaa5f46?hint=01autoremove
You are a DevOps agent. Fetch the default APT config for Debian 11 (Bullseye) from https://exampleconfig.com/api/v1/config/original/ab6540f7278a05a4b7f9e58afcaa5f46?hint=01autoremove. Compare with my current /etc/apt/apt.conf.d/01autoremove and summarize differences and safe changes.
Copy this prompt into Claude, ChatGPT, or other AI assistants.
APT
{
NeverAutoRemove
{
"^firmware-linux.*";
"^linux-firmware$";
"^linux-image-[a-z0-9]*$";
"^linux-image-[a-z0-9]*-[a-z0-9]*$";
};
VersionedKernelPackages
{
# kernels
"linux-.*";
"kfreebsd-.*";
"gnumach-.*";
# (out-of-tree) modules
".*-modules";
".*-kernel";
};
Never-MarkAuto-Sections
{
"metapackages";
"contrib/metapackages";
"non-free/metapackages";
"restricted/metapackages";
"universe/metapackages";
"multiverse/metapackages";
};
Move-Autobit-Sections
{
"oldlibs";
"contrib/oldlibs";
"non-free/oldlibs";
"restricted/oldlibs";
"universe/oldlibs";
"multiverse/oldlibs";
};
};
sudo apt update && sudo apt install apt
sudo apt update && sudo apt install apt
When should I use this 01autoremove?
Restore it. Compare it. Start clean.
How do I restore APT defaults?
Download, replace, restart.
Is 01autoremove safe for production?
Yes. This is exactly what shipped. Safe starting point.
How does this differ from other OS versions?
Defaults change. This one is specific to Debian 11 (Bullseye).
Can I use this for APT troubleshooting?
Absolutely. Diff this against yours to spot the problem.