It’s always good to learn these commands as they apply to a terminal. Yes there are ways I’d doing this via the handy welcome app. It is really intended to get you started. Otherwise you are just clicking a button without knowing what that button is actually doing to your system.
➤ sudo pacman -Sc
[sudo] password for deweshk:
Packages to keep:
All locally installed packages
Cache directory: /var/cache/pacman/pkg/
:: Do you want to remove all other packages from cache? [Y/n]
removing old packages from cache...
Database directory: /var/lib/pacman/
:: Do you want to remove unused repositories? [Y/n]
removing unused sync repositories...
When first time I used this command, I noticed that this command targets the cache directory to remove unused things. To verify this at that time I also used paccache -r to see the results, but its output was
➤ paccache -r
==> no candidate packages found for pruning
Hence, I preferred the first one. Please correct me If I went wrong.
Pro tip - some the things I posted can be set to timers so you don’t actually have to do them. But as Endeavour is to be a starting point and you build your system, if you’d like to include or setup things like automatic journal trimming or cache trimming - you are welcome to set them up! Peruse the links I provide to the wiki if you’d like and if you need more help - create a thread and we can help you. I don’t want to add more of it here.