Safe to Delete

Ubuntu APT Package Cache (/var/cache/apt/archives)

Quick Answer: /var/cache/apt/archives stores downloaded .deb package installer files. Running sudo apt clean is safe and reclaims gigabytes of disk space.

Bottom Line: It is 100% safe to delete the APT package cache using sudo apt clean. Doing so will NOT uninstall any programs on your Ubuntu or Debian system.


What is the APT Package Cache Folder?

Located at /var/cache/apt/archives, this directory is used by the APT package manager on Ubuntu, Debian, Linux Mint, and Pop!_OS.

Whenever you run sudo apt install or update packages via Software Updater, APT downloads the raw .deb installer-folder)-folder)-folder)-folder)-folder)-folder)-folder)-folder)-folder)-folder)-folder)-folder)-folder)-folder)-folder)-folder)-folder)-folder)-folder)-folder)-folder)-folder)-folder) files into this folder before installing them. However, APT never automatically deletes these .deb installers after installation. Over months of software updates, /var/cache/apt/archives accumulates gigabytes of obsolete package installers.


Can You Delete /var/cache/apt/archives?

✅ Yes, it is completely safe to delete.

  • Installed programs stay 100% intact: The actual installed software binaries live in /usr/bin and /usr/lib, not in the cache archive.
  • Auto-download on reinstall: If you ever reinstall a package in the future, APT will simply fetch a fresh .deb from Ubuntu repositories.

How to Safely Clean Up APT Cache

Open your terminal and run:

sudo apt clean

What it does: It completely empties /var/cache/apt/archives (except for the lock file and partial directory), instantly reclaiming 1 GB to 10 GB+ of disk space.

Method 2: Remove Obsolete Packages Only

If you want to keep cached .deb files for currently installed apps while deleting packages that are no longer available in repos:

sudo apt autoclean

Method 3: Autoremove Unused Orphaned Dependencies

To delete leftover library dependencies that were installed automatically but are no longer needed by any app:

sudo apt autoremove --purge

Discussion

Loading authentication...

Related in installers

Flatpak Package Cache & Unused Runtimes (/var/lib/flatpak)

/var/lib/flatpak stores Flatpak desktop apps and runtimes. Pruning unused runtimes with flatpak uninstall --unused is safe and frees space.

Safe to Delete

Panther Folder (C:\$WINDOWS.~BT\Sources\Panther)

The Panther folder stores setup and upgrade log files for Windows installation. Deleting Panther is safe and frees up hidden upgrade logs.

Safe to Delete

Ubuntu Snap Package Cache (/var/lib/snapd/snaps)

/var/lib/snapd/snaps stores old disabled versions of Snap packages. Removing old revisions is safe and frees up gigabytes on Ubuntu.

Safe to Delete
Back to all files