1

does the command apt-cache depends package_name list out the level 1 dependencies of the package or all the dependencies of the package recursively? The answer in What is apt-cache used for? says that it displays raw dependencies. Is it same as level1 dependencies?

samhitha
  • 167

1 Answers1

1

apt-cache depends is not recursive. There's a separate tool called apt-rdepends for that. I have no idea what you mean by "level 1" dependencies, I have not seen that term in any official packaging documentation.

muru
  • 197,895
  • 55
  • 485
  • 740
  • By level 1 dependencies, I mean the first level of dependencies for a package. For example, A is a package and it's dependencies are B and C. However, in turn B depends on D and E , and C depends on F. In this case, B and C are first level dependencies. – samhitha Feb 24 '17 at 06:49
  • Since apt-cache depends is not recursive, yes, that's mostly what it means. – muru Feb 24 '17 at 06:50