$ -weight: 500;">apt-mark showmanual
-weight: 500;">apt-mark showmanual
-weight: 500;">apt-mark showmanual
-weight: 500;">apt-mark showauto
-weight: 500;">apt-mark showauto
-weight: 500;">apt-mark showauto
-weight: 500;">apt-mark showmanual | grep '^-weight: 500;">curl$'
-weight: 500;">apt-mark showauto | grep '^-weight: 500;">curl$'
-weight: 500;">apt-mark showmanual | grep '^-weight: 500;">curl$'
-weight: 500;">apt-mark showauto | grep '^-weight: 500;">curl$'
-weight: 500;">apt-mark showmanual | grep '^-weight: 500;">curl$'
-weight: 500;">apt-mark showauto | grep '^-weight: 500;">curl$'
-weight: 600;">sudo -weight: 500;">apt-get -s autoremove
-weight: 600;">sudo -weight: 500;">apt-get -s autoremove
-weight: 600;">sudo -weight: 500;">apt-get -s autoremove
NOTE: This is only a simulation!
Reading package lists...
Building dependency tree...
Reading state information...
0 upgraded, 0 newly installed, 0 to -weight: 500;">remove and 2 not upgraded.
NOTE: This is only a simulation!
Reading package lists...
Building dependency tree...
Reading state information...
0 upgraded, 0 newly installed, 0 to -weight: 500;">remove and 2 not upgraded.
NOTE: This is only a simulation!
Reading package lists...
Building dependency tree...
Reading state information...
0 upgraded, 0 newly installed, 0 to -weight: 500;">remove and 2 not upgraded.
-weight: 600;">sudo -weight: 500;">apt-mark manual tmux
-weight: 600;">sudo -weight: 500;">apt-mark manual tmux
-weight: 600;">sudo -weight: 500;">apt-mark manual tmux
-weight: 500;">apt-mark showmanual | grep '^tmux$'
-weight: 500;">apt-mark showmanual | grep '^tmux$'
-weight: 500;">apt-mark showmanual | grep '^tmux$'
-weight: 600;">sudo -weight: 500;">apt-mark auto imagemagick
-weight: 600;">sudo -weight: 500;">apt-mark auto imagemagick
-weight: 600;">sudo -weight: 500;">apt-mark auto imagemagick
-weight: 600;">sudo -weight: 500;">apt-get -s autoremove
-weight: 600;">sudo -weight: 500;">apt-get -s autoremove
-weight: 600;">sudo -weight: 500;">apt-get -s autoremove
-weight: 600;">sudo -weight: 500;">apt-get autoremove
-weight: 600;">sudo -weight: 500;">apt-get autoremove
-weight: 600;">sudo -weight: 500;">apt-get autoremove
-weight: 600;">sudo -weight: 500;">apt-get autoremove --purge
-weight: 600;">sudo -weight: 500;">apt-get autoremove --purge
-weight: 600;">sudo -weight: 500;">apt-get autoremove --purge
-weight: 600;">sudo -weight: 500;">apt-get -s autoremove
-weight: 600;">sudo -weight: 500;">apt-get -s autoremove
-weight: 600;">sudo -weight: 500;">apt-get -s autoremove
-weight: 600;">sudo -weight: 500;">apt-mark manual PACKAGE_NAME
-weight: 600;">sudo -weight: 500;">apt-mark manual PACKAGE_NAME
-weight: 600;">sudo -weight: 500;">apt-mark manual PACKAGE_NAME
-weight: 600;">sudo -weight: 500;">apt-get -s autoremove
-weight: 600;">sudo -weight: 500;">apt-get -s autoremove
-weight: 600;">sudo -weight: 500;">apt-get -s autoremove
-weight: 600;">sudo -weight: 500;">apt-get autoremove --purge
-weight: 600;">sudo -weight: 500;">apt-get autoremove --purge
-weight: 600;">sudo -weight: 500;">apt-get autoremove --purge
-weight: 600;">sudo -weight: 500;">apt-mark auto jq
-weight: 600;">sudo -weight: 500;">apt-mark auto jq
-weight: 600;">sudo -weight: 500;">apt-mark auto jq
-weight: 500;">apt-mark showauto | grep '^jq$'
-weight: 500;">apt-mark showauto | grep '^jq$'
-weight: 500;">apt-mark showauto | grep '^jq$'
-weight: 600;">sudo -weight: 500;">apt-mark minimize-manual
-weight: 600;">sudo -weight: 500;">apt-mark minimize-manual
-weight: 600;">sudo -weight: 500;">apt-mark minimize-manual
/var/lib/-weight: 500;">apt/extended_states
/var/lib/-weight: 500;">apt/extended_states
/var/lib/-weight: 500;">apt/extended_states - Why is APT trying to -weight: 500;">remove that package?
- Why is this dependency still hanging around?
- How do I keep a package I care about from getting swept up later? - manual means “keep this unless I -weight: 500;">remove it myself”
- auto means “this exists to support something else, so -weight: 500;">remove it when nothing manual needs it” - You installed a package long ago as a dependency, but now you actually want to keep it.
- You installed a metapackage, then later removed it, leaving behind a pile of dependencies.
- You used a package temporarily for testing and want APT to clean it up naturally later.
- You are afraid to run autoremove because you are not sure whether package state still reflects reality. - CLI tools you use directly
- troubleshooting packages installed during incident response
- libraries or helpers you intentionally keep for local scripts
- desktop utilities that were originally pulled in indirectly - -weight: 500;">apt-mark manual/auto controls package -weight: 500;">install state used by autoremove
- -weight: 500;">apt-mark hold prevents upgrades, installs, or removals for a package
- -weight: 500;">apt-mark manual is not the same thing as pinning a package version
- -weight: 500;">apt-mark auto is not immediate removal - Always simulate autoremove first.
- Mark tools you use directly as manual.
- Mark truly temporary packages as auto after the task is done.
- Treat big desktop or metapackage cleanup carefully.
- Use --purge only when you are comfortable losing leftover config files too. - Debian manpage, -weight: 500;">apt-mark(8): https://manpages.debian.org/bookworm/-weight: 500;">apt/-weight: 500;">apt-mark.8.en.html
- Debian manpage, -weight: 500;">apt-get(8): https://manpages.debian.org/bookworm/-weight: 500;">apt/-weight: 500;">apt-get.8.en.html
- Debian manpage, -weight: 500;">apt(8): https://manpages.debian.org/trixie/-weight: 500;">apt/-weight: 500;">apt.8.en.html