No.
Unfortunately, RPM-based package management has just one type of dependencies. It's a dependency or it's not, not something in between (read here). In my experience, dependencies in Fedora are quite limited and non-core functionality is not installed unless you do group-installs.
The multiple levels of dependencies shows one of the powers of DEB-based package management, in my opinion.
I don't know of a one-stop command line solution, although all the tools exist (apt-cache depends --installed
, apt-cache rdepends --installed --recurse
, apt-mark showmanual
, dpigs
, etc.). It would be possible to hack together a command line script that could attempt to find large packages with few manually installed reverse dependencies. Here's the proof of concept I used as a starting point:
dpigs | awk 'NR == 1 {print $2}' | xargs apt-cache rdepends --installed --important --recurse | awk '!/:/ {print $1}' | sort -u
On the other hand, if you want to do complex analysis of the graph in multiple directions (e.g., what set of manually installed packages has the largest on-disk overlapping set of recursive dependencies), it can quickly get out of hand. At that point, you'll probably need to look at something more customizable (awk
or python
?).
Full Disclosure: I have contributed to the project below. If that kind of thing matters to you, please take it into account. If I were aware of a similar project that were already in the Debian repositories, I would probably post that instead.
While I prefer to do everything from the command line, you might find pacgraph (also on github) a useful alternative. It was originally written by Kyle Keen for Arch Linux, but it's now compatible with deb- and rpm- based systems as well. I used to have some sample output from an Ubuntu system, but I can't find it, so here's an example from his web site:
.
It's been a while since I've used it, but I believe there are also flags to highlight a particular package, with different colors for its recursive dependencies and reverse dependencies.
Best Answer
You can also tell
apt-get autoremove
to ignore “Recommends” and “Suggests”:Use
-s
to get a list of the removals this would lead to without actually changing anything: