APT maintenance for Ubuntu WordPress servers

ubuntulinuxhostingops

A little APT maintenance prevents the two classics: broken upgrades and mysterious disk loss. This minimal routine keeps package lists and disk usage under control.

Minimal routine

What to watch

FAQ

How often should I run this?
At least after any manual upgrade; many teams run apt update weekly and apt upgrade on a planned window. Always follow with a quick check of systemctl --failed and key services.

What if the disk is already full?
Stop before running large upgrades. Reclaim space first using the full root disk cleanup guide, then resume maintenance.