Safe to Delete

Arch Linux Pacman Package Cache (/var/cache/pacman/pkg)

Quick Answer: /var/cache/pacman/pkg stores downloaded package archives on Arch Linux & Manjaro. Clearing pacman cache is safe and frees up drive space.

Bottom Line: It is 100% safe to clear the Pacman package cache. Running paccache -r or pacman -Sc will NOT uninstall your Linux applications or corrupt system packages.


What is the Pacman Package Cache Folder?

Located at /var/cache/pacman/pkg on Arch Linux, Manjaro, and EndeavourOS, this directory stores downloaded .pkg.tar.zst binary package archives.

Unlike Debian/Ubuntu apt (which deletes package installers after upgrading), Pacman never automatically deletes old package archives. Over months of updating Arch Linux, Pacman retains every historical version of installed packages, rapidly consuming 10 GB to 40 GB+.


Can You Delete Pacman Package Cache?

✅ Yes, it is safe to clear.

  • No software uninstalled: Active installed binaries in /usr/bin remain untouched.
  • Rollback safety: Keeping the last 1 or 2 package versions allows package rollbacks if a system update breaks a driver.

How to Safely Clean Up Pacman Cache

Run paccache to clean old packages while keeping the last 2 versions for emergency rollback:

sudo paccache -r

Method 2: Purge Uninstalled Package Archives Completely

To purge archives for uninstalled software:

sudo pacman -Sc

To purge all cached package archives (maximum space recovery):

sudo pacman -Scc

Discussion

Loading authentication...

Related in linux

Linux Audit Framework Log Directory (/var/log/audit)

The Linux auditd service records security events, file access traces, and user commands in /var/log/audit. Learn how to clean auditd log files safely.

Safe to Delete

Fail2ban Ban History Database (/var/lib/fail2ban/fail2ban.sqlite3)

Fail2ban intrusion prevention daemon logs banned IP addresses and SSH brute-force attempts in fail2ban.sqlite3. Clearing Fail2ban database is safe.

Safe to Delete

GNOME Desktop File Indexer Database (~/.local/share/tracker/data)

GNOME Tracker caches desktop search index databases. Resetting the tracker database is safe.

Safe to Delete
Back to all files