How to reclaim root space after update+upgrade?

Schwarze Wellen

New Member
May 16, 2024
6
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.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!