this post was submitted on 24 Jan 2026
10 points (100.0% liked)
Debian operating system
3691 readers
1 users here now
Debian is a free operating system (OS) for your computer. An operating system is the set of basic programs and utilities that make your computer run. Debian provides more than a pure OS: it comes with over 59000 packages, precompiled software bundled up in a nice format for easy installation on your machine.
founded 6 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
On Debian Stable by default when apt installs a package it will also install Depends and Recommends. The package can't install without Depends so that one is obvious - for Recommends you can check your apt configuration running apt-config dump, it probably has
meaning those packages get installed too.
Knowing that, you could in theory run apt show PACKAGE-NAME to view each package's Depends and Recommends. So for example if you want to look at kde-standard then run
With the above example you could use the information for Depends and Recommends to figure out which packages were installed alongside kde-standard. It would be a bit time consuming but could give you a starting off point.
Also note Debian repos are online on their website. So using the above example for Debian Stable you can view the same kde-standard info at https://packages.debian.org/stable/kde-standard , one idea could be simply to copy all the dep and rec package names and then paste them into a new script to apt remove them all one-by-one (or in one long command).
PS - I'm a bit surprised apt autoremove doesn't fix this for you, that seems to be the point of the command unless I misunderstood its intent :/