MinakiLabs

Inaabi

Removing unused packages safely

Every unused package is something to patch and something that can carry risk. Taking away what the workload never uses is Inaabi Tune’s main job — and you can do a careful DIY version on a copy.

Rule one: work on a copy

Give us a staging copy: we work only on the address you give us and can’t check that it is a copy. Snapshot or clone first. Do not invent a removal list on production.

See what you have

dpkg -l | wc -l
apt-mark showmanual | head
deborphan   # sudo apt install deborphan  (optional helper)

Manual packages are what someone chose to install. Orphans and leaf packages are candidates — not automatic deletes.

Remove in small batches

# example only — replace with packages you verified the job never needs
sudo apt-get remove -y package-a package-b
sudo apt-get autoremove -y
# run YOUR acceptance test here (curl the site, run the batch job, etc.)
# if the test fails: sudo apt-get install -y package-a package-b

Never pipe a long unreviewed list into apt remove. One failed batch should be reinstalled before you continue.

What the Ubuntu 22.04 lab showed

Before-and-after figures are coming: we publish them once we have a logged run of the current release on a supported Ubuntu 22.04 server. Your counts will differ.

Honest about “removed”

Packages can leave config files behind. Say it plainly: removed does not always mean a spotless disk. Track leftovers; do not claim a perfect uninstall.

How Tune differs from DIY

Inaabi Tune records what the server actually uses while your test runs, removes in groups with restart-and-re-test, and refuses a candidate that ends weaker than it started. See proving changes before keeping them and how Inaabi Tune works.

Free baseline before you touch packages: Inaabi Scan.

Next

Related: SUID binaries · harden without breaking it. Then Subscribe to Inaabi Tune at $20 per server per month.