How to reclaim root space after update+upgrade?

Schwarze Wellen

New Member
May 16, 2024
8
0
1
Hi, I'm new to Proxmox VE and I've been regularly updating my single node running VE 8 using the "no subscription" repos.

I've noticed that my "local" root directory storage (NOT local-lvm) loses several hundred MB every time this happens. I'm assuming this is normal and just the leftover packages?

What's the recommended procedure or command to clean this up post-upgrade? I have plenty of space now but I can see this becoming problematic over time.
 
Hey. First check where the clutter is stacking up. ncdu is a good tool for that.

Code:
apt install ncdu
ncdu /

Most probably it's the apt cache.
apt, the Debian package manager keeps old versions of packages by default.

Code:
apt clean
clears the package cache.

Cheers
wowo
 
Hey. First check where the clutter is stacking up. ncdu is a good tool for that.

Code:
apt install ncdu
ncdu /

Most probably it's the apt cache.
apt, the Debian package manager keeps old versions of packages by default.

Code:
apt clean
clears the package cache.

Cheers
wowo
Thanks, I ran
Code:
apt clean
but it doesn't result in any output. Normal? I think it did knock off a few hundred MB though.
 
Just wanted to say:

apt autoremove

Is the command that freed up several gigs of space on the root partition. I think there were old kernels leftover from previous updates.

apt clean
Did help, but not nearly as much as autoremove.