Skip to content

Instantly share code, notes, and snippets.

@KunalSin9h
Created September 13, 2023 07:24
Show Gist options
  • Save KunalSin9h/c0b85098937cd8ceeaf55f91cd8254ed to your computer and use it in GitHub Desktop.
Save KunalSin9h/c0b85098937cd8ceeaf55f91cd8254ed to your computer and use it in GitHub Desktop.

1 Clearn Package Cache

1.1 remove cache package which are not installed

sudo pacman -Sc

1.1 remove all cache package files

sudo pacman -Scc

2 Remove Unused packages

2.1 Get all the unused packages

sudo pacman -Qtdq

TIP: use sudo pacman -R {} to remove a single package

2.2 Now remove all unsed packages

sudo pacman -R $(pacman -Qtdq)

TIP: see package not instaled from arch package repo, sudo pacman -Qm

3 Clean /home/ directory

rm -rf .cache

TIP: use program ncdu to check store per folder

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment