ReZeroS / LinuxQA

0 stars 0 forks source link

Arch clean #4

Open ReZeroS opened 5 years ago

ReZeroS commented 5 years ago

Link youtube

  1. Backup your data & system

  2. Remove PKG cache

    • script: paccache
    • mv /var/cache/pacman/pkg/* /mnt/backup
  3. Remove all orphan packages

    • sudo pacman -R $(pacman -Qtdq)
  4. Clean cache in your home/user

    • du -sh ~/.cache/
    • rm -rf ~/.cache/*
  5. Remove old configurations

    • rm ~/.config/unuse_folder
    • rm ~/.local/share/unuse_folder
  6. Find and remove tools : :+1: rmlint

    • duplicates
    • broken symlinks
    • empty file & folder
  7. Find largest file in the directory

    • ncdu or just plamsma5 disk tool or baobab
  8. Disk cleaning programs Do you really use Arch Linux?

ReZeroS commented 5 years ago

log limit only save one month

journalctl --vacuum-time=1months