0

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.

samhitha
  • 157
  • 2
  • 7
  • 14

2 Answers2

2

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.

Ramon Suarez
  • 1,841
  • 2
  • 17
  • 31
1

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:

example image of package dependency

Seth
  • 57,282
  • 43
  • 144
  • 200