What is the best way to discover what package/s installed other package as its dependency?
Assuming we know package name "abc" and we want to know which packages triggered its installation. I have found and composed one command. Replace "abc" at the begining of it.
It requires: sudo apt install apt-rdepends # Debian package installation command
It lists only packages that are currently installed, to list even non installed ones, remove "|grep installed" part.
Any other more simple method?packagename=abc && for dep in $(apt-rdepends --reverse --state-follow=Installed "$packagename"|awk {'print $3'}|grep .|grep -v "... Done"); do echo "$dep" && apt list $dep|grep installed; done
Bookmarks