How to get ALL kinds of reverse package dependencies: reverse-depends pendant for non-Ubuntu distributions

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP












3















I would like to find all possible reverse dependencies (no need for recursive reverse dependencies) of a certain package p, that is, I want to find all packages which depend on p. This shall include reverse dependencies on p's source package and also reverse build dependencies.



If I understand it correctly, there are 4 types of reverse dependencies:




  1. r depends on p


  2. r depends on source package of p

  3. Building r requires p

  4. Building r requires the source package of p

I would like to find all of them.



For Debian, there is apt-rdepends -r but the manual says:



 apt-rdepends cannot do reverse build-dependencies.


For Ubuntu, there is reverse-depends, which seems to let me do what I want but it seems to be Ubuntu specific, as the manual pages states it is




Provided by: ubuntu-dev-tools_0.153_all




Are there reverse-depends-like tools which will work for non-Ubuntu distributions, especially those using deb and rpm packages?










share|improve this question




























    3















    I would like to find all possible reverse dependencies (no need for recursive reverse dependencies) of a certain package p, that is, I want to find all packages which depend on p. This shall include reverse dependencies on p's source package and also reverse build dependencies.



    If I understand it correctly, there are 4 types of reverse dependencies:




    1. r depends on p


    2. r depends on source package of p

    3. Building r requires p

    4. Building r requires the source package of p

    I would like to find all of them.



    For Debian, there is apt-rdepends -r but the manual says:



     apt-rdepends cannot do reverse build-dependencies.


    For Ubuntu, there is reverse-depends, which seems to let me do what I want but it seems to be Ubuntu specific, as the manual pages states it is




    Provided by: ubuntu-dev-tools_0.153_all




    Are there reverse-depends-like tools which will work for non-Ubuntu distributions, especially those using deb and rpm packages?










    share|improve this question


























      3












      3








      3


      2






      I would like to find all possible reverse dependencies (no need for recursive reverse dependencies) of a certain package p, that is, I want to find all packages which depend on p. This shall include reverse dependencies on p's source package and also reverse build dependencies.



      If I understand it correctly, there are 4 types of reverse dependencies:




      1. r depends on p


      2. r depends on source package of p

      3. Building r requires p

      4. Building r requires the source package of p

      I would like to find all of them.



      For Debian, there is apt-rdepends -r but the manual says:



       apt-rdepends cannot do reverse build-dependencies.


      For Ubuntu, there is reverse-depends, which seems to let me do what I want but it seems to be Ubuntu specific, as the manual pages states it is




      Provided by: ubuntu-dev-tools_0.153_all




      Are there reverse-depends-like tools which will work for non-Ubuntu distributions, especially those using deb and rpm packages?










      share|improve this question
















      I would like to find all possible reverse dependencies (no need for recursive reverse dependencies) of a certain package p, that is, I want to find all packages which depend on p. This shall include reverse dependencies on p's source package and also reverse build dependencies.



      If I understand it correctly, there are 4 types of reverse dependencies:




      1. r depends on p


      2. r depends on source package of p

      3. Building r requires p

      4. Building r requires the source package of p

      I would like to find all of them.



      For Debian, there is apt-rdepends -r but the manual says:



       apt-rdepends cannot do reverse build-dependencies.


      For Ubuntu, there is reverse-depends, which seems to let me do what I want but it seems to be Ubuntu specific, as the manual pages states it is




      Provided by: ubuntu-dev-tools_0.153_all




      Are there reverse-depends-like tools which will work for non-Ubuntu distributions, especially those using deb and rpm packages?







      debian package-management rpm dependencies deb






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited May 28 '18 at 11:19









      GAD3R

      26.7k1756111




      26.7k1756111










      asked Jul 6 '15 at 10:39









      stackoverflowwwwstackoverflowwww

      16719




      16719




















          1 Answer
          1






          active

          oldest

          votes


















          8














          In Debian and derivatives there are six types of dependencies:



          • pre-depends

          • depends

          • recommends

          • suggests

          • build-depends

          • build-depends-indep

          Each of these give corresponding reverse dependencies. To list them you can use grep-dctrl:



          grep-dctrl -FBuild-Depends mypackage -w -sPackage /var/lib/apt/lists/*Sources


          will list all the packages which build-depend on mypackage, i.e. mypackage's non-recursive reverse build-dependencies.






          share|improve this answer

























          • Add -w to prevent getting false positive matches (e.g. because a package build depends on libsuitesparse-dev while you are interested in sparse)

            – Uwe Kleine-König
            Jan 30 at 14:08











          Your Answer








          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "106"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f214138%2fhow-to-get-all-kinds-of-reverse-package-dependencies-reverse-depends-pendant-fo%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          8














          In Debian and derivatives there are six types of dependencies:



          • pre-depends

          • depends

          • recommends

          • suggests

          • build-depends

          • build-depends-indep

          Each of these give corresponding reverse dependencies. To list them you can use grep-dctrl:



          grep-dctrl -FBuild-Depends mypackage -w -sPackage /var/lib/apt/lists/*Sources


          will list all the packages which build-depend on mypackage, i.e. mypackage's non-recursive reverse build-dependencies.






          share|improve this answer

























          • Add -w to prevent getting false positive matches (e.g. because a package build depends on libsuitesparse-dev while you are interested in sparse)

            – Uwe Kleine-König
            Jan 30 at 14:08
















          8














          In Debian and derivatives there are six types of dependencies:



          • pre-depends

          • depends

          • recommends

          • suggests

          • build-depends

          • build-depends-indep

          Each of these give corresponding reverse dependencies. To list them you can use grep-dctrl:



          grep-dctrl -FBuild-Depends mypackage -w -sPackage /var/lib/apt/lists/*Sources


          will list all the packages which build-depend on mypackage, i.e. mypackage's non-recursive reverse build-dependencies.






          share|improve this answer

























          • Add -w to prevent getting false positive matches (e.g. because a package build depends on libsuitesparse-dev while you are interested in sparse)

            – Uwe Kleine-König
            Jan 30 at 14:08














          8












          8








          8







          In Debian and derivatives there are six types of dependencies:



          • pre-depends

          • depends

          • recommends

          • suggests

          • build-depends

          • build-depends-indep

          Each of these give corresponding reverse dependencies. To list them you can use grep-dctrl:



          grep-dctrl -FBuild-Depends mypackage -w -sPackage /var/lib/apt/lists/*Sources


          will list all the packages which build-depend on mypackage, i.e. mypackage's non-recursive reverse build-dependencies.






          share|improve this answer















          In Debian and derivatives there are six types of dependencies:



          • pre-depends

          • depends

          • recommends

          • suggests

          • build-depends

          • build-depends-indep

          Each of these give corresponding reverse dependencies. To list them you can use grep-dctrl:



          grep-dctrl -FBuild-Depends mypackage -w -sPackage /var/lib/apt/lists/*Sources


          will list all the packages which build-depend on mypackage, i.e. mypackage's non-recursive reverse build-dependencies.







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Jan 30 at 14:20

























          answered Jul 6 '15 at 12:05









          Stephen KittStephen Kitt

          172k24389466




          172k24389466












          • Add -w to prevent getting false positive matches (e.g. because a package build depends on libsuitesparse-dev while you are interested in sparse)

            – Uwe Kleine-König
            Jan 30 at 14:08


















          • Add -w to prevent getting false positive matches (e.g. because a package build depends on libsuitesparse-dev while you are interested in sparse)

            – Uwe Kleine-König
            Jan 30 at 14:08

















          Add -w to prevent getting false positive matches (e.g. because a package build depends on libsuitesparse-dev while you are interested in sparse)

          – Uwe Kleine-König
          Jan 30 at 14:08






          Add -w to prevent getting false positive matches (e.g. because a package build depends on libsuitesparse-dev while you are interested in sparse)

          – Uwe Kleine-König
          Jan 30 at 14:08


















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Unix & Linux Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f214138%2fhow-to-get-all-kinds-of-reverse-package-dependencies-reverse-depends-pendant-fo%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown






          Popular posts from this blog

          Peggy Mitchell

          Palaiologos

          The Forum (Inglewood, California)