Skip to main content
Rugix Bakery 0.9.6 is here: Build rules for custom image pipelines and verified boot for EFI and Raspberry Pi. Read the release post.
Documentation

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: false

With 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"]