Clean the Arch Linux filesystem

system cleaning cleaning packages Check the size of the package cache: du -sh /var/cache/pacman/pkg/ Removing packages i. Remove uninstalled packages from the cache: sudo pacman -Sc yay -Sc ii. Remove all cached packages except for the most recent three versions of each package: sudo pacman -S pacman-contrib sudo paccache -r iii. Remove all cached packages: sudo pacman -Scc yay -Scc iv. Remove orphaned packages (packages that were installed as dependencies but are no longer required by any installed package): ...

My Pacman Notes

Pacman : What we need to know Pacman is the package manager for Arch Linux and its derivatives. It is used to install, update, and manage software packages on the system. Here are some key points to know about Pacman: Basic Commands: pacman -S <package>: Install a package. pacman -R <package>: Remove a package. pacman -Syu: Update the system (synchronize package databases and upgrade all packages). pacman -Ss <search_term>: Search for a package in the repositories using string or regex. pacman -Qi <package>: Display information about an installed package. pacman -Ql <package>: List files installed by a package. Configuration File: ...