Written 26 Aug 2026. This is a how-to, not a product card. Buy links are not tagged yet.
Clear old package downloads when the leftover disk is tight
After weekly updates, leftover downloads can sit on the disk. Clear them safely before you buy a bigger drive or a NAS.
This is a cleanup, not a shopping trip. The leftover box already has room checks and weekly fixes. You are clearing installer files that pile up after those updates, before you spend money on a bigger drive.
Skip until you looked at disk room
If you have not checked room yet, stop. That look is see if the leftover box still has room. From the couch, ask:
df -h
Point at the line that ends in /. If Use% is fine, skip this note. If phones and laptops cannot open the house folder, fix that first: when the house share disappeared, check the leftover box.
What this is
apt is the Debian and Ubuntu tool that installs updates. Weekly leftover-box updates download installer files into a cache folder. Those files stay after the install finishes. Clearing them frees room. It does not uninstall Pi-hole, Samba, or your house folder.
See how big the cache is
Optional, but nice before you clear:
sudo du -sh /var/cache/apt/archives
That number is the size of the leftover downloads, not your programs.
Clear it
Clear the downloaded package files:
sudo apt clean
That empties the cache. Your installed programs stay. A second, careful step is:
sudo apt autoremove
That removes packages marked unused after upgrades. Skip autoremove on day one if you are nervous. apt clean alone is enough for this note.
Check again
Ask about room once more:
df -h
Look at / again. The longer look is still see if the leftover box still has room. If it is still full, delete real junk (Downloads and Trash) from that note. Do not buy a NAS for cache files.
What next
If there is no second copy yet, that is a backup of the leftover-box folder. After one manual copy works, confirm it with check that the leftover-box backup actually copied. Skip a NAS. Skip a new internal drive this weekend. Skip filling the leftover laptop with a movie library.
Skip
- Skip this note if disk room is fine.
- Skip this note if you never ran updates.
- Skip a NAS for this.
- Skip deleting
/srv/shareto "make room." - Skip random
rm -rfon system folders.
Sources
Debian: apt (clean). Ubuntu: apt (clean). Official pages only. For disk room, see see if the leftover box still has room. For weekly fixes, see keep the leftover box updated. For the share, see a file share on the leftover box.