Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
s-hemer opened this issue Jan 22, 2025 · 1 comment
Open

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

s-hemer opened this issue Jan 22, 2025 · 1 comment

Comments

@s-hemer
Copy link

s-hemer commented Jan 22, 2025

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.

@s-hemer s-hemer changed the title Reasoning behind using rm instead of apt distclean Reasoning behind using rm instead of apt-get distclean Jan 22, 2025
@s-hemer
Copy link
Author

s-hemer commented Jan 23, 2025

Seems to be available in newer apt-get version only, i.e. 2.7.14 (Ubuntu 24.04) vs 2.4.13 (22.04)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant