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?

  • 2
    mpv is available from the universe repository. apt depends mpv should give you the depends for mpv on your system. – DK Bose May 7 '18 at 13:23
  • Why do you wish to search for dependencies? Apt takes care of everything for you...if you are using it properly. – user535733 May 7 '18 at 13:58
  • You have lots of options. See How to list dependent packages (reverse dependencies)? apt depends works, but you can install rdepends and then use apt-rdepends -r <packagename>, may give a more thorough list...There's also apt-cache showpkg <packagename>. Or ubuntu-dev-tools provides reverse-depends. – Hee Jin May 7 '18 at 15:44
  • 2
    Possible duplicate of How to list dependent packages (reverse dependencies)? – Hee Jin May 7 '18 at 15:44
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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.