From 155b488d1bf69f17a73164d867cfdd8d2c67ff8f Mon Sep 17 00:00:00 2001 From: xengineering Date: Tue, 26 May 2026 19:21:02 +0200 Subject: articles: pacman: Explain pacman -Sc --- content/articles/pacman.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'content') diff --git a/content/articles/pacman.md b/content/articles/pacman.md index b61beb7..ee8def3 100644 --- a/content/articles/pacman.md +++ b/content/articles/pacman.md @@ -76,6 +76,20 @@ removes packages which were needed for the selected package to work. The recursive option is smart enough to leave a dependency on the system if it is needed by another explicitly installed package. +#### Package cache cleanup + +`pacman` keeps all downloaded packages by default in the package cache. This +can take a significant amount of disk space. + +To clean up all but the latest versions of the installed packages one can run: + +``` +sudo pacman -Sc +``` + +This asks interactive question which can be simply be answered by typing +`` in most cases. + #### Further documentation This page is just a little cheat sheet especially targeted at new Arch Linux -- cgit v1.3.1