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.
Asked
Active
Viewed 1,905 times
2 Answers
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