how to find (ALL) dependencies of a package

Forum Forums General Tips and Tricks how to find (ALL) dependencies of a package

  • This topic has 3 replies, 4 voices, and was last updated Sep 5-8:40 am by anilkagi.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #41119
    Anonymous

      What actually is the method to find all the dependencies of a package.

      $ apt show <packagename>

      here’s an example of its output for package “mirage”
      (as found in antiX16, which I’m revisiting today):

      $ apt show mirage
      Package: mirage
      Status: install ok installed
      Priority: extra
      Section: graphics
      Installed-Size: 551 kB
      Maintainer: Debian QA Group <packages@qa.debian.org>
      Version: 0.9.5.1-3
      Depends: libc6 (>= 2.2.5), libx11-6, python (>= 2.7), python (<< 2.8), python-gtk2
      Suggests: gimp, imagemagick, menu
      Homepage: hxxp: ========= skidoo deleted (it pointed to a defunct berlios.de page)
      Download-Size: unknown
      APT-Manual-Installed: yes
      APT-Sources: /var/lib/dpkg/status
      Description: fast and simple GTK+ image viewer
      Mirage is ideal for users who wish to keep their computers
      lean while still having a clean image viewer.
      .
      Features:
      * Supports png, jpg, svg, xpm, gif, bmp, tiff, and others
      * Preloading to navigate faster through images (optional)
      * Thumbnail pane for quick navigation
      * Slideshow and fullscreen mode
      * Rotating, zooming, flipping, resizing, and cropping
      * Custom user actions
      * Screenshot

      In order to avoid unnecessary bloat, The default antiX apt configuration is set to only consider “Depends” items.

      Depends: ~= must have, cannot function without
      Recommends: ~= wishy-washy, indeterminate what exact this “means” (subject to packager’s [in]discretion)
      Suggests: ~= indeterminate (open to packager’s discretion)
      Declaring relationships between packages
      : Binary Dependencies – Depends, Recommends, Suggests, Enhances, Pre-Depends

      What actually is the method to find _ALL_ the dependencies of a package.

      Because a typical user probably seldom ever “needs” to see/know
      pkg A depends on B, which in turn, depends on CDE…
      the specific utility for viewing this in-depth info might not be pre-installed in antiX, so:
      $ sudo apt install apt-rdepends
      $ man rdepends

      reusing “mirage” as a quick example
      $ apt-rdepends mirage
      whoops, I won’t paste the output (its output was 535 lines long!)

      a related in-depth utility:
      $ sudo apt install apt-file
      $ man apt-file

      #41130
      Member
      ex_Koo
        Helpful
        Up
        0
        ::

        I had some more to add but got this..

        A potentially unsafe operation has been detected in your request to this site

        Your access to this service has been limited. (HTTP response code 403)

        If you think you have been blocked in error, contact the owner of this site for assistance.
        Block Technical Data
        Block Reason: A potentially unsafe operation has been detected in your request to this site
        Time: Sat, 5 Sep 2020 9:44:42 GMT

        #41134
        Member
        Xecure
          Helpful
          Up
          0
          ::

          Your access to this service has been limited. (HTTP response code 403)

          If you think you have been blocked in error, contact the owner of this site for assistance.
          Block Technical Data
          Block Reason: A potentially unsafe operation has been detected in your request to this site
          Time: Sat, 5 Sep 2020 9:44:42 GMT

          This happens to me when I directly add “html like” tags to the post. When adding code without the code tags, for example.

          Using apt-cache tools:
          Single level of Dependencies (only direct dependencies):
          apt-cache depends <packagename> --no-recommends --no-suggests --no-conflicts --no-breaks --no-replaces --no-enhances
          Single level Dependencies and Recommended packages:
          apt-cache depends <packagename> --no-suggests --no-conflicts --no-breaks --no-replaces --no-enhances
          ALL recursive dependencies:
          apt-cache depends <packagename> --recurse --no-recommends --no-suggests --no-conflicts --no-breaks --no-replaces --no-enhances
          Some dependencies without being sure they are all that are needed: use apt-rdepends

          antiX Live system enthusiast.
          General Live Boot Parameters for antiX.

          #41141
          Member
          anilkagi
            Helpful
            Up
            0
            ::

            Thanks @Skidoo for the compassionate HowTo.

            @Xecure, those filter codes are sweet. Beauty. Icing on the cake.

            @Koo, hope your issue is resolved.

            I wanted this since long. It helps a lot.

          Viewing 4 posts - 1 through 4 (of 4 total)
          • You must be logged in to reply to this topic.