I have read that apt-cache depends lists out the dependencies on package_name,however, is there a way I can list out all the dependencies of all the packages in a single command ( something like, apt-cache depends all ) ? Thanks in advance.
I have read that apt-cache depends lists out the dependencies on package_name,however, is there a way I can list out all the dependencies of all the packages in a single command ( something like, apt-cache depends all ) ? Thanks in advance.
apt list --installed | xargs apt-cache showpkg > dependencies.txt
. Beware it will take long and use all your cpu. I piped it to a file because it is a very long list. The first part of the pipe provides all installed packages, the second part takes each one of them and looks for their dependencies.I found a blog post trying to achieve what you asked for and explaining how to do it.
It is obviously not a trivial tree but more a galaxy of meshed nodes: