core/pkg-cleanup
Clean package caches and package lists.
Preview
You're viewing the Next docs — a rolling preview of in-development changes. The current release docs may differ.Clean package caches and package lists.
Inputs
No artifact inputs.
Parameters
-
autoremove -
Default:
falseWith APT, remove automatically installed packages that are no longer required. Ignored on Alpine.
Scheduling
-
Priority
-
-900000 -
Dependencies
-
None
Higher priorities run first within the selected recipe set unless before or
after constraints require otherwise. Dependencies include other recipes
without ordering them.
Behavior
Runs late so other recipes can install packages first. On APT-based systems, set autoremove when the final filesystem should also drop packages no longer required by installed packages. Alpine ignores this option.
Example
For example, add the recipe to a layer derived from a compatible base:
recipes = ["core/pkg-cleanup"]