nala-autoremove/autopurge(8)
π NAME π
nala-autoremove / nala-autopurge β the twin commands that yeet (or fully obliterate) packages you literally do not need anymore. This page lives in the Nala User Manual, and it's your bestie for clearing out the clutter. π§Ήβ¨
β¨ SYNOPSIS β¨
nala autoremove [--options]
nala autopurge [--options]
π DESCRIPTION π
Okay so, automatically remove or purge any packages that are no longer needed. That's the whole vibe. π«Ά
And "no longer needed" means what? Usually it's dependencies that got installed automatically back in the day, and now no package depends on them anymore. So they're just... sitting there. Taking up space. Doing nothing. Not the main character energy we're looking for. π
autoremove and autopurge get documented together because they are almost the same command. Fr fr.
And lowkey the secret? nala autopurge is really just nala autoremove --purge. That's it. That's the plot twist. π¦
π₯ OPTIONS π₯
--configβ Purge configuration files for packages that are no longer installed. Like, the package left, but its little config files are still hanging around the group chat. This kicks them out too. βοΈ--purgeβ Purge any packages that would be removed during the transaction. Not just uninstall β purge. The full send. π--debugβ Print helpful information for solving issues. If you're submitting a bug report, try running the command again with--debugand hand the output to the devs β it may be helpful. Basically it's the "show your work" of bug reports. π--raw-dpkgβ Force nala not to format dpkg output. This disables all formatting and it would look as if you were usingapt. A more in-depth explanation of what this switch does: nala will fork a tty instead of a pty for dpkg. Also, nala will not display a progress bar for dpkg with this turned on. Additionally, the language of the output will not be forced into English in this mode. So yeah β raw, unfiltered, no glow-up. π«£-d,--download-onlyβ Packages are only retrieved, not unpacked or installed. You're just grabbing them. Window shopping, but make it apt. ποΈ--remove-essentialβ Allow the removal of essential packages. > This is very dangerous, but we thought you should have the option. Not me warning you and then handing you the keys anyway. ππͺ--assume-yes,--assume-noβ The auto-answer squad, so you don't have to sit there mashing keys.-y,--assume-yesβ Automatically select yes for any prompts which may need your input. If the configuration optionassume_yesis true, this switch will set it back to default behavior. Yes bestie, always yes. β-n,--assume-noβ Automatically select no for any prompts which may need your input. The "I said what I said" setting. π«
--simple,--no-simpleβ Pick your summary aesthetic:--simpleβ Show a more simple and condensed transaction summary. Minimal. Clean. Very demure. β¨--no-simpleβ Show the standard table transaction summary with more information. This variant is the default. The full spreadsheet experience. π
-o,--optionβ Set options to pass through toapt,nala, ordpkg. The "hey bestie, pass this along" flag. π
Example β force dpkg to install new config files without prompting:
nala install --option Dpkg::Options::="--force-confnew"
Disable scrolling text for nala:
nala install --option Nala::scrolling_text="false"
Allow nala to update unauthenticated repositories:
nala install --option* APT::Get::AllowUnauthenticated="true"
-v,--verboseβ Disable scrolling text and print extra information. It's giving lore dump. π£οΈ-h,--helpβ Shows this man page. Hi. Hello. You're here. π--update,--no-updateβ Refresh the package list, or don't. Your call, your rules.--updateβ Update the package list before the requested operation.
Example:
nala install --update neofetch
is equivalent to
apt update && apt install neofetch
[Default for: upgrade]
--no-updateβ Do NOT update the package list before the requested operation.
[Default for: install, remove, purge, autoremove, autopurge]
--fix-broken,--no-fix-brokenβ For when things are lowkey a mess. π©Ή--fix-brokenβ Attempts to fix broken packages. This variant is the default. π οΈ--no-fix-brokenβ Stops nala from performing extra checks.
This can result in a broken install! Bestie, we are begging you. π
If you just want to fix broken packages:
nala install --fix-broken
Β©οΈ COPYRIGHT Β©οΈ
Copyright (C) 2021, 2022 Blake Lee
And that's the whole page, bestie β version 0.16.0, dated 21 Apr 2025, straight from the nala-autoremove/autopurge(8) page of the Nala User Manual. Go clear out those orphaned dependencies and live your unbothered, disk-space-rich life. π¦π Slay, periodt. β¨
π¦ where this page comes from
- debian trixie: nala 0.16.0 Β· GPL-3.0-or-later
- ubuntu resolute: nala 0.16.0 Β· GPL-3.0-or-later
- ubuntu stonking: nala 0.16.0 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms