Skip to content

Reasoning behind using rm instead of apt-get distclean #20

@s-hemer

Description

@s-hemer

i.e.

&& rm -rf /var/lib/apt/lists/* && \

From the manpage:

distclean removes all files under /var/lib/apt/lists except Release, Release.gpg, and InRelease. It can be used for example, when finalizing images distributed to users. The release files are kept for security reasons, to prevent various types of attacks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions