cleanup arch package caches

cleanup arch package caches

October 20, 2022
linux
arch

reference

Pacman stores all downloaded packages in /var/cache/pacman/pkg/. It does not remove the old and uninstalled packages automatically. This is intended behavior for handling situations like downgrading a package without retrieve the previous version through the Arch Linux Archive.

Check size of cached packages #

du -sh /var/cache/pacman/pkg/

Cleaning the cache manually #

# delete cached packages that are not installed
sudo pacman -Sc
# delete caches including those that are currently installed.
sudo pacman -Scc

No notes link to this note