Skip to main content

Yay Cleanup Guide

Yay (Yet Another Yogurt) is an AUR helper that allows you to install and manage packages from the Arch User Repository (AUR). This guide will show you how to clean up your yay cache and maintain your system efficiently.

Clean Package Cache

To clean up unused packages in the yay cache directory:

yay -Scc

This command:

  • -S: Synchronize packages
  • cc: Clean the package cache

Additional Cleanup Options

Remove Unused Dependencies

To remove unused dependencies:

yay -Yc

Remove Build Files

To remove build files from the AUR packages:

yay -Sc

Best Practices

  1. Regularly clean your package cache to free up disk space
  2. Keep track of your installed AUR packages
  3. Remove unused dependencies to maintain a clean system
  4. If you encounter any issues, check the CachyOS forums for solutions
yay -Scc