Where Does apt Store Downloaded Packages?
apt archives cache of .deb files on Debian and Ubuntu, and the clean versus autoclean difference.
Last updated
apt keeps downloaded .deb files in /var/cache/apt/archives so reinstalls skip the download. Partial downloads wait in a partial subfolder.
This cache grows after every upgrade wave. The clean command wipes it all; autoclean drops only packages too old to install anymore.
Where Linux stores this, by platform
/var/cache/apt/archives
Debian and Ubuntu family only; Fedora and Arch use different package caches. Needs root to list or clear.
Frequently asked questions
Is it safe to delete apt cache files?
Yes. Run the clean command rather than rm so locks and partials stay consistent. Reinstalls re download as needed.
Can I reuse cached .debs on another machine?
Yes for matching release and architecture: copy the .deb files and install with dpkg, or point a local repo at them.
Notice an outdated path? Let us know.