0

mpv has a lot of dependencies and I don't know how to search for them. Is there a way to search for the packages that contain the dependencies?

DK Bose
  • 42,548
  • 23
  • 127
  • 221
paddy
  • 3

1 Answers1

0

The following commands show information about a package (mpv in this case), including dependencies.

  • aptitude show mpv
  • apt show mpv

The following command shows dependencies recursively (the depends of depends of...):

  • apt-rdepends mpv

The following commands show reverse dependencies (packages for which this package is a dependency):

  • apt rdepends mpv
  • apt-rdepends -r mpv

The following command shows both dependencies and reverse dependencies:

  • apt-cache showpkg mpv

If you just want to install a package and have the package manager handle dependencies, use:

`aptitude install mpv`

aptitude automatically resolves conflicting dependencies during installation, whereas apt/apt-get do not.

xiota
  • 4,849