How to list dependent packages (reverse dependencies)?











up vote
146
down vote

favorite
58












In order to research what caused the installation of a given package, I'd like to get a list of packages which depend on that package. I couldn't find anything obvious in man dpkg.










share|improve this question
























  • Related: askubuntu.com/questions/13296/…
    – Seth
    Feb 26 '15 at 3:58






  • 5




    The older question's answers all revolve around aptitude, something that hasn't been installed by default for years. In 2017, everyone on Ubuntu still has apt-cache. Anyone who follows the linked question is going to get lost in a discussion about a program few will have.
    – Lambart
    Aug 18 '17 at 17:48















up vote
146
down vote

favorite
58












In order to research what caused the installation of a given package, I'd like to get a list of packages which depend on that package. I couldn't find anything obvious in man dpkg.










share|improve this question
























  • Related: askubuntu.com/questions/13296/…
    – Seth
    Feb 26 '15 at 3:58






  • 5




    The older question's answers all revolve around aptitude, something that hasn't been installed by default for years. In 2017, everyone on Ubuntu still has apt-cache. Anyone who follows the linked question is going to get lost in a discussion about a program few will have.
    – Lambart
    Aug 18 '17 at 17:48













up vote
146
down vote

favorite
58









up vote
146
down vote

favorite
58






58





In order to research what caused the installation of a given package, I'd like to get a list of packages which depend on that package. I couldn't find anything obvious in man dpkg.










share|improve this question















In order to research what caused the installation of a given package, I'd like to get a list of packages which depend on that package. I couldn't find anything obvious in man dpkg.







package-management command-line dependencies






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jun 19 '15 at 8:29









Garrett

5303722




5303722










asked Apr 30 '12 at 13:06









l0b0

3,88173158




3,88173158












  • Related: askubuntu.com/questions/13296/…
    – Seth
    Feb 26 '15 at 3:58






  • 5




    The older question's answers all revolve around aptitude, something that hasn't been installed by default for years. In 2017, everyone on Ubuntu still has apt-cache. Anyone who follows the linked question is going to get lost in a discussion about a program few will have.
    – Lambart
    Aug 18 '17 at 17:48


















  • Related: askubuntu.com/questions/13296/…
    – Seth
    Feb 26 '15 at 3:58






  • 5




    The older question's answers all revolve around aptitude, something that hasn't been installed by default for years. In 2017, everyone on Ubuntu still has apt-cache. Anyone who follows the linked question is going to get lost in a discussion about a program few will have.
    – Lambart
    Aug 18 '17 at 17:48
















Related: askubuntu.com/questions/13296/…
– Seth
Feb 26 '15 at 3:58




Related: askubuntu.com/questions/13296/…
– Seth
Feb 26 '15 at 3:58




5




5




The older question's answers all revolve around aptitude, something that hasn't been installed by default for years. In 2017, everyone on Ubuntu still has apt-cache. Anyone who follows the linked question is going to get lost in a discussion about a program few will have.
– Lambart
Aug 18 '17 at 17:48




The older question's answers all revolve around aptitude, something that hasn't been installed by default for years. In 2017, everyone on Ubuntu still has apt-cache. Anyone who follows the linked question is going to get lost in a discussion about a program few will have.
– Lambart
Aug 18 '17 at 17:48










6 Answers
6






active

oldest

votes

















up vote
188
down vote



accepted










apt-cache rdepends packagename should do what you want






share|improve this answer

















  • 1




    Excellent! apt-cache rdepends tofrodos confirmed the suspicion that it was installed by another package (the obsoleted dos2unix).
    – l0b0
    Apr 30 '12 at 13:12












  • Good deal. I do wish there was a recursive option. Sadly there is not as far as I am aware.
    – RobotHumans
    Apr 30 '12 at 13:27






  • 1




    As for today (apt version 0.9.9.1), there is --recurse option that works with rdepends.
    – jarno
    Dec 22 '13 at 14:00






  • 26




    If you add --installed, the output is even useful for packages which can be used by many others: apt-cache rdepends --installed packagename
    – quazgar
    May 27 '14 at 22:08






  • 3




    For the output, why do some of the packages have a vertical bar (pipe symbol) before them?
    – Vahid Pazirandeh
    Nov 16 '17 at 5:35


















up vote
52
down vote













aptitude has a fairly nice way of handling this:



$ aptitude why bash
i foomatic-filters PreDepends bash (>= 2.05)


By default, it only lists the "most installed, strongest, tightest, shortest" reason, but you can use aptitude -v why to make it output everything it finds.






share|improve this answer



















  • 4




    Seems like it considers only the installed packages, not everything available. And that was what I needed.
    – Tuukka Mustonen
    Jul 25 '13 at 10:06






  • 2




    For that you want reverse-depends in ubuntu-dev-tools
    – tumbleweed
    Jul 25 '13 at 11:38










  • How about debian?
    – Tuukka Mustonen
    Jul 25 '13 at 12:08






  • 1




    ubuntu-dev-tools is in Debian
    – tumbleweed
    Jul 26 '13 at 11:18










  • This is great. I learned that openssh-server recommended (and therefore installed) xauth on a headless server, dragging in hundreds of x11 dependencies and dozens of useless updates a month. That's the problem with automated package management!
    – BaseZen
    Mar 2 at 3:17


















up vote
16
down vote













apt-cache showpkg <pkgname> 


Example:



apt-cache showpkg lightdm





share|improve this answer






























    up vote
    13
    down vote













    There is more than one way, with each method showing a different output.



    For a detailed view of the full reverse dependency tree;



    aptitude install apt-rdepends
    apt-rdepends -r bash


    Alternatively;



    apt-cache showpkg bash


    Or a concise list:



    apt-cache rdepends bash





    share|improve this answer























    • What exactly does rdepends show in that tree? apt-rdepends php7.0-fpm shows sed. sed doesn't depend on PHP, let alone PHP FPM.
      – Dan Dascalescu
      Jan 9 at 23:21










    • It is reverse depends, it means that PHP depends on sed.
      – Erik Berkun-Drevnig
      Apr 25 at 3:30










    • Hi guys, actually "apt-rdepends" stands for "recursive dependency". If you want reverse recursive dependency, you have to type : apt-rdepends -r yourPackageNameHere
      – SebMa
      Apr 27 at 12:56


















    up vote
    3
    down vote













    In addition to other good answers, doing:



    sudo apt -s remove <pkgname>



    ( -s Does a "simulated" removal. )



    The removal command will normally list any dependencies/programs/libraries that will be affected or that can removed (orphaned) along with specified pkg. (If they exist.)






    share|improve this answer























    • apt remove -s php7.0-fpm shows The following additional packages will be installed: apache2 apache2-bin apache2-data libapache2-mod-php7.0 libaprutil1-dbd-sqlite3 libaprutil1-ldap liblua5.1-0. Why would apache get installed if I remove PHP FPM?
      – Dan Dascalescu
      Jan 9 at 23:22










    • @DanDascalescu Hmm. Might be a bad install/remove script for apt pkg or might be you have some other dependencies that install apache2 as dep (meaning a webserver is needed - and I believe apache2 is default web server). Could be a few things. Just not sure. Has the smell of a good post on AskUbuntu if you haven't found an answer.
      – bshea
      Jul 10 at 16:26




















    up vote
    0
    down vote













    The simplest option is still:



    apt rdepends package-name


    which does not require you to install any package.






    share|improve this answer

















    • 1




      What is this adding to the accepted answer?
      – l0b0
      Nov 26 at 23:58










    • The accepted answer has nothing to do with this one. The output is completely different and way more useful for human consumption than apt-cache's. The answer mentions that apt-cache is not installed by default everywhere - that alone should be a rather good hint why this answer has its purpose. finally, this is actually the answer I was looking for, so any downvote is rather silly.
      – stefanct
      Nov 28 at 13:21











    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "89"
    };
    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',
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    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%2faskubuntu.com%2fquestions%2f128524%2fhow-to-list-dependent-packages-reverse-dependencies%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    6 Answers
    6






    active

    oldest

    votes








    6 Answers
    6






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    188
    down vote



    accepted










    apt-cache rdepends packagename should do what you want






    share|improve this answer

















    • 1




      Excellent! apt-cache rdepends tofrodos confirmed the suspicion that it was installed by another package (the obsoleted dos2unix).
      – l0b0
      Apr 30 '12 at 13:12












    • Good deal. I do wish there was a recursive option. Sadly there is not as far as I am aware.
      – RobotHumans
      Apr 30 '12 at 13:27






    • 1




      As for today (apt version 0.9.9.1), there is --recurse option that works with rdepends.
      – jarno
      Dec 22 '13 at 14:00






    • 26




      If you add --installed, the output is even useful for packages which can be used by many others: apt-cache rdepends --installed packagename
      – quazgar
      May 27 '14 at 22:08






    • 3




      For the output, why do some of the packages have a vertical bar (pipe symbol) before them?
      – Vahid Pazirandeh
      Nov 16 '17 at 5:35















    up vote
    188
    down vote



    accepted










    apt-cache rdepends packagename should do what you want






    share|improve this answer

















    • 1




      Excellent! apt-cache rdepends tofrodos confirmed the suspicion that it was installed by another package (the obsoleted dos2unix).
      – l0b0
      Apr 30 '12 at 13:12












    • Good deal. I do wish there was a recursive option. Sadly there is not as far as I am aware.
      – RobotHumans
      Apr 30 '12 at 13:27






    • 1




      As for today (apt version 0.9.9.1), there is --recurse option that works with rdepends.
      – jarno
      Dec 22 '13 at 14:00






    • 26




      If you add --installed, the output is even useful for packages which can be used by many others: apt-cache rdepends --installed packagename
      – quazgar
      May 27 '14 at 22:08






    • 3




      For the output, why do some of the packages have a vertical bar (pipe symbol) before them?
      – Vahid Pazirandeh
      Nov 16 '17 at 5:35













    up vote
    188
    down vote



    accepted







    up vote
    188
    down vote



    accepted






    apt-cache rdepends packagename should do what you want






    share|improve this answer












    apt-cache rdepends packagename should do what you want







    share|improve this answer












    share|improve this answer



    share|improve this answer










    answered Apr 30 '12 at 13:07









    RobotHumans

    22.7k362103




    22.7k362103








    • 1




      Excellent! apt-cache rdepends tofrodos confirmed the suspicion that it was installed by another package (the obsoleted dos2unix).
      – l0b0
      Apr 30 '12 at 13:12












    • Good deal. I do wish there was a recursive option. Sadly there is not as far as I am aware.
      – RobotHumans
      Apr 30 '12 at 13:27






    • 1




      As for today (apt version 0.9.9.1), there is --recurse option that works with rdepends.
      – jarno
      Dec 22 '13 at 14:00






    • 26




      If you add --installed, the output is even useful for packages which can be used by many others: apt-cache rdepends --installed packagename
      – quazgar
      May 27 '14 at 22:08






    • 3




      For the output, why do some of the packages have a vertical bar (pipe symbol) before them?
      – Vahid Pazirandeh
      Nov 16 '17 at 5:35














    • 1




      Excellent! apt-cache rdepends tofrodos confirmed the suspicion that it was installed by another package (the obsoleted dos2unix).
      – l0b0
      Apr 30 '12 at 13:12












    • Good deal. I do wish there was a recursive option. Sadly there is not as far as I am aware.
      – RobotHumans
      Apr 30 '12 at 13:27






    • 1




      As for today (apt version 0.9.9.1), there is --recurse option that works with rdepends.
      – jarno
      Dec 22 '13 at 14:00






    • 26




      If you add --installed, the output is even useful for packages which can be used by many others: apt-cache rdepends --installed packagename
      – quazgar
      May 27 '14 at 22:08






    • 3




      For the output, why do some of the packages have a vertical bar (pipe symbol) before them?
      – Vahid Pazirandeh
      Nov 16 '17 at 5:35








    1




    1




    Excellent! apt-cache rdepends tofrodos confirmed the suspicion that it was installed by another package (the obsoleted dos2unix).
    – l0b0
    Apr 30 '12 at 13:12






    Excellent! apt-cache rdepends tofrodos confirmed the suspicion that it was installed by another package (the obsoleted dos2unix).
    – l0b0
    Apr 30 '12 at 13:12














    Good deal. I do wish there was a recursive option. Sadly there is not as far as I am aware.
    – RobotHumans
    Apr 30 '12 at 13:27




    Good deal. I do wish there was a recursive option. Sadly there is not as far as I am aware.
    – RobotHumans
    Apr 30 '12 at 13:27




    1




    1




    As for today (apt version 0.9.9.1), there is --recurse option that works with rdepends.
    – jarno
    Dec 22 '13 at 14:00




    As for today (apt version 0.9.9.1), there is --recurse option that works with rdepends.
    – jarno
    Dec 22 '13 at 14:00




    26




    26




    If you add --installed, the output is even useful for packages which can be used by many others: apt-cache rdepends --installed packagename
    – quazgar
    May 27 '14 at 22:08




    If you add --installed, the output is even useful for packages which can be used by many others: apt-cache rdepends --installed packagename
    – quazgar
    May 27 '14 at 22:08




    3




    3




    For the output, why do some of the packages have a vertical bar (pipe symbol) before them?
    – Vahid Pazirandeh
    Nov 16 '17 at 5:35




    For the output, why do some of the packages have a vertical bar (pipe symbol) before them?
    – Vahid Pazirandeh
    Nov 16 '17 at 5:35












    up vote
    52
    down vote













    aptitude has a fairly nice way of handling this:



    $ aptitude why bash
    i foomatic-filters PreDepends bash (>= 2.05)


    By default, it only lists the "most installed, strongest, tightest, shortest" reason, but you can use aptitude -v why to make it output everything it finds.






    share|improve this answer



















    • 4




      Seems like it considers only the installed packages, not everything available. And that was what I needed.
      – Tuukka Mustonen
      Jul 25 '13 at 10:06






    • 2




      For that you want reverse-depends in ubuntu-dev-tools
      – tumbleweed
      Jul 25 '13 at 11:38










    • How about debian?
      – Tuukka Mustonen
      Jul 25 '13 at 12:08






    • 1




      ubuntu-dev-tools is in Debian
      – tumbleweed
      Jul 26 '13 at 11:18










    • This is great. I learned that openssh-server recommended (and therefore installed) xauth on a headless server, dragging in hundreds of x11 dependencies and dozens of useless updates a month. That's the problem with automated package management!
      – BaseZen
      Mar 2 at 3:17















    up vote
    52
    down vote













    aptitude has a fairly nice way of handling this:



    $ aptitude why bash
    i foomatic-filters PreDepends bash (>= 2.05)


    By default, it only lists the "most installed, strongest, tightest, shortest" reason, but you can use aptitude -v why to make it output everything it finds.






    share|improve this answer



















    • 4




      Seems like it considers only the installed packages, not everything available. And that was what I needed.
      – Tuukka Mustonen
      Jul 25 '13 at 10:06






    • 2




      For that you want reverse-depends in ubuntu-dev-tools
      – tumbleweed
      Jul 25 '13 at 11:38










    • How about debian?
      – Tuukka Mustonen
      Jul 25 '13 at 12:08






    • 1




      ubuntu-dev-tools is in Debian
      – tumbleweed
      Jul 26 '13 at 11:18










    • This is great. I learned that openssh-server recommended (and therefore installed) xauth on a headless server, dragging in hundreds of x11 dependencies and dozens of useless updates a month. That's the problem with automated package management!
      – BaseZen
      Mar 2 at 3:17













    up vote
    52
    down vote










    up vote
    52
    down vote









    aptitude has a fairly nice way of handling this:



    $ aptitude why bash
    i foomatic-filters PreDepends bash (>= 2.05)


    By default, it only lists the "most installed, strongest, tightest, shortest" reason, but you can use aptitude -v why to make it output everything it finds.






    share|improve this answer














    aptitude has a fairly nice way of handling this:



    $ aptitude why bash
    i foomatic-filters PreDepends bash (>= 2.05)


    By default, it only lists the "most installed, strongest, tightest, shortest" reason, but you can use aptitude -v why to make it output everything it finds.







    share|improve this answer














    share|improve this answer



    share|improve this answer








    edited Apr 3 '17 at 0:23









    n.st

    733717




    733717










    answered May 1 '12 at 13:41









    tumbleweed

    7,0981734




    7,0981734








    • 4




      Seems like it considers only the installed packages, not everything available. And that was what I needed.
      – Tuukka Mustonen
      Jul 25 '13 at 10:06






    • 2




      For that you want reverse-depends in ubuntu-dev-tools
      – tumbleweed
      Jul 25 '13 at 11:38










    • How about debian?
      – Tuukka Mustonen
      Jul 25 '13 at 12:08






    • 1




      ubuntu-dev-tools is in Debian
      – tumbleweed
      Jul 26 '13 at 11:18










    • This is great. I learned that openssh-server recommended (and therefore installed) xauth on a headless server, dragging in hundreds of x11 dependencies and dozens of useless updates a month. That's the problem with automated package management!
      – BaseZen
      Mar 2 at 3:17














    • 4




      Seems like it considers only the installed packages, not everything available. And that was what I needed.
      – Tuukka Mustonen
      Jul 25 '13 at 10:06






    • 2




      For that you want reverse-depends in ubuntu-dev-tools
      – tumbleweed
      Jul 25 '13 at 11:38










    • How about debian?
      – Tuukka Mustonen
      Jul 25 '13 at 12:08






    • 1




      ubuntu-dev-tools is in Debian
      – tumbleweed
      Jul 26 '13 at 11:18










    • This is great. I learned that openssh-server recommended (and therefore installed) xauth on a headless server, dragging in hundreds of x11 dependencies and dozens of useless updates a month. That's the problem with automated package management!
      – BaseZen
      Mar 2 at 3:17








    4




    4




    Seems like it considers only the installed packages, not everything available. And that was what I needed.
    – Tuukka Mustonen
    Jul 25 '13 at 10:06




    Seems like it considers only the installed packages, not everything available. And that was what I needed.
    – Tuukka Mustonen
    Jul 25 '13 at 10:06




    2




    2




    For that you want reverse-depends in ubuntu-dev-tools
    – tumbleweed
    Jul 25 '13 at 11:38




    For that you want reverse-depends in ubuntu-dev-tools
    – tumbleweed
    Jul 25 '13 at 11:38












    How about debian?
    – Tuukka Mustonen
    Jul 25 '13 at 12:08




    How about debian?
    – Tuukka Mustonen
    Jul 25 '13 at 12:08




    1




    1




    ubuntu-dev-tools is in Debian
    – tumbleweed
    Jul 26 '13 at 11:18




    ubuntu-dev-tools is in Debian
    – tumbleweed
    Jul 26 '13 at 11:18












    This is great. I learned that openssh-server recommended (and therefore installed) xauth on a headless server, dragging in hundreds of x11 dependencies and dozens of useless updates a month. That's the problem with automated package management!
    – BaseZen
    Mar 2 at 3:17




    This is great. I learned that openssh-server recommended (and therefore installed) xauth on a headless server, dragging in hundreds of x11 dependencies and dozens of useless updates a month. That's the problem with automated package management!
    – BaseZen
    Mar 2 at 3:17










    up vote
    16
    down vote













    apt-cache showpkg <pkgname> 


    Example:



    apt-cache showpkg lightdm





    share|improve this answer



























      up vote
      16
      down vote













      apt-cache showpkg <pkgname> 


      Example:



      apt-cache showpkg lightdm





      share|improve this answer

























        up vote
        16
        down vote










        up vote
        16
        down vote









        apt-cache showpkg <pkgname> 


        Example:



        apt-cache showpkg lightdm





        share|improve this answer














        apt-cache showpkg <pkgname> 


        Example:



        apt-cache showpkg lightdm






        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Oct 19 '13 at 1:55









        Seth

        33.6k26109159




        33.6k26109159










        answered Apr 30 '12 at 13:11









        qorrow

        32113




        32113






















            up vote
            13
            down vote













            There is more than one way, with each method showing a different output.



            For a detailed view of the full reverse dependency tree;



            aptitude install apt-rdepends
            apt-rdepends -r bash


            Alternatively;



            apt-cache showpkg bash


            Or a concise list:



            apt-cache rdepends bash





            share|improve this answer























            • What exactly does rdepends show in that tree? apt-rdepends php7.0-fpm shows sed. sed doesn't depend on PHP, let alone PHP FPM.
              – Dan Dascalescu
              Jan 9 at 23:21










            • It is reverse depends, it means that PHP depends on sed.
              – Erik Berkun-Drevnig
              Apr 25 at 3:30










            • Hi guys, actually "apt-rdepends" stands for "recursive dependency". If you want reverse recursive dependency, you have to type : apt-rdepends -r yourPackageNameHere
              – SebMa
              Apr 27 at 12:56















            up vote
            13
            down vote













            There is more than one way, with each method showing a different output.



            For a detailed view of the full reverse dependency tree;



            aptitude install apt-rdepends
            apt-rdepends -r bash


            Alternatively;



            apt-cache showpkg bash


            Or a concise list:



            apt-cache rdepends bash





            share|improve this answer























            • What exactly does rdepends show in that tree? apt-rdepends php7.0-fpm shows sed. sed doesn't depend on PHP, let alone PHP FPM.
              – Dan Dascalescu
              Jan 9 at 23:21










            • It is reverse depends, it means that PHP depends on sed.
              – Erik Berkun-Drevnig
              Apr 25 at 3:30










            • Hi guys, actually "apt-rdepends" stands for "recursive dependency". If you want reverse recursive dependency, you have to type : apt-rdepends -r yourPackageNameHere
              – SebMa
              Apr 27 at 12:56













            up vote
            13
            down vote










            up vote
            13
            down vote









            There is more than one way, with each method showing a different output.



            For a detailed view of the full reverse dependency tree;



            aptitude install apt-rdepends
            apt-rdepends -r bash


            Alternatively;



            apt-cache showpkg bash


            Or a concise list:



            apt-cache rdepends bash





            share|improve this answer














            There is more than one way, with each method showing a different output.



            For a detailed view of the full reverse dependency tree;



            aptitude install apt-rdepends
            apt-rdepends -r bash


            Alternatively;



            apt-cache showpkg bash


            Or a concise list:



            apt-cache rdepends bash






            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited Apr 27 at 14:25









            Zanna

            49.2k13123234




            49.2k13123234










            answered May 1 '12 at 13:52









            papashou

            2,260198




            2,260198












            • What exactly does rdepends show in that tree? apt-rdepends php7.0-fpm shows sed. sed doesn't depend on PHP, let alone PHP FPM.
              – Dan Dascalescu
              Jan 9 at 23:21










            • It is reverse depends, it means that PHP depends on sed.
              – Erik Berkun-Drevnig
              Apr 25 at 3:30










            • Hi guys, actually "apt-rdepends" stands for "recursive dependency". If you want reverse recursive dependency, you have to type : apt-rdepends -r yourPackageNameHere
              – SebMa
              Apr 27 at 12:56


















            • What exactly does rdepends show in that tree? apt-rdepends php7.0-fpm shows sed. sed doesn't depend on PHP, let alone PHP FPM.
              – Dan Dascalescu
              Jan 9 at 23:21










            • It is reverse depends, it means that PHP depends on sed.
              – Erik Berkun-Drevnig
              Apr 25 at 3:30










            • Hi guys, actually "apt-rdepends" stands for "recursive dependency". If you want reverse recursive dependency, you have to type : apt-rdepends -r yourPackageNameHere
              – SebMa
              Apr 27 at 12:56
















            What exactly does rdepends show in that tree? apt-rdepends php7.0-fpm shows sed. sed doesn't depend on PHP, let alone PHP FPM.
            – Dan Dascalescu
            Jan 9 at 23:21




            What exactly does rdepends show in that tree? apt-rdepends php7.0-fpm shows sed. sed doesn't depend on PHP, let alone PHP FPM.
            – Dan Dascalescu
            Jan 9 at 23:21












            It is reverse depends, it means that PHP depends on sed.
            – Erik Berkun-Drevnig
            Apr 25 at 3:30




            It is reverse depends, it means that PHP depends on sed.
            – Erik Berkun-Drevnig
            Apr 25 at 3:30












            Hi guys, actually "apt-rdepends" stands for "recursive dependency". If you want reverse recursive dependency, you have to type : apt-rdepends -r yourPackageNameHere
            – SebMa
            Apr 27 at 12:56




            Hi guys, actually "apt-rdepends" stands for "recursive dependency". If you want reverse recursive dependency, you have to type : apt-rdepends -r yourPackageNameHere
            – SebMa
            Apr 27 at 12:56










            up vote
            3
            down vote













            In addition to other good answers, doing:



            sudo apt -s remove <pkgname>



            ( -s Does a "simulated" removal. )



            The removal command will normally list any dependencies/programs/libraries that will be affected or that can removed (orphaned) along with specified pkg. (If they exist.)






            share|improve this answer























            • apt remove -s php7.0-fpm shows The following additional packages will be installed: apache2 apache2-bin apache2-data libapache2-mod-php7.0 libaprutil1-dbd-sqlite3 libaprutil1-ldap liblua5.1-0. Why would apache get installed if I remove PHP FPM?
              – Dan Dascalescu
              Jan 9 at 23:22










            • @DanDascalescu Hmm. Might be a bad install/remove script for apt pkg or might be you have some other dependencies that install apache2 as dep (meaning a webserver is needed - and I believe apache2 is default web server). Could be a few things. Just not sure. Has the smell of a good post on AskUbuntu if you haven't found an answer.
              – bshea
              Jul 10 at 16:26

















            up vote
            3
            down vote













            In addition to other good answers, doing:



            sudo apt -s remove <pkgname>



            ( -s Does a "simulated" removal. )



            The removal command will normally list any dependencies/programs/libraries that will be affected or that can removed (orphaned) along with specified pkg. (If they exist.)






            share|improve this answer























            • apt remove -s php7.0-fpm shows The following additional packages will be installed: apache2 apache2-bin apache2-data libapache2-mod-php7.0 libaprutil1-dbd-sqlite3 libaprutil1-ldap liblua5.1-0. Why would apache get installed if I remove PHP FPM?
              – Dan Dascalescu
              Jan 9 at 23:22










            • @DanDascalescu Hmm. Might be a bad install/remove script for apt pkg or might be you have some other dependencies that install apache2 as dep (meaning a webserver is needed - and I believe apache2 is default web server). Could be a few things. Just not sure. Has the smell of a good post on AskUbuntu if you haven't found an answer.
              – bshea
              Jul 10 at 16:26















            up vote
            3
            down vote










            up vote
            3
            down vote









            In addition to other good answers, doing:



            sudo apt -s remove <pkgname>



            ( -s Does a "simulated" removal. )



            The removal command will normally list any dependencies/programs/libraries that will be affected or that can removed (orphaned) along with specified pkg. (If they exist.)






            share|improve this answer














            In addition to other good answers, doing:



            sudo apt -s remove <pkgname>



            ( -s Does a "simulated" removal. )



            The removal command will normally list any dependencies/programs/libraries that will be affected or that can removed (orphaned) along with specified pkg. (If they exist.)







            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited Aug 22 '17 at 17:05

























            answered Aug 22 '17 at 16:53









            bshea

            40738




            40738












            • apt remove -s php7.0-fpm shows The following additional packages will be installed: apache2 apache2-bin apache2-data libapache2-mod-php7.0 libaprutil1-dbd-sqlite3 libaprutil1-ldap liblua5.1-0. Why would apache get installed if I remove PHP FPM?
              – Dan Dascalescu
              Jan 9 at 23:22










            • @DanDascalescu Hmm. Might be a bad install/remove script for apt pkg or might be you have some other dependencies that install apache2 as dep (meaning a webserver is needed - and I believe apache2 is default web server). Could be a few things. Just not sure. Has the smell of a good post on AskUbuntu if you haven't found an answer.
              – bshea
              Jul 10 at 16:26




















            • apt remove -s php7.0-fpm shows The following additional packages will be installed: apache2 apache2-bin apache2-data libapache2-mod-php7.0 libaprutil1-dbd-sqlite3 libaprutil1-ldap liblua5.1-0. Why would apache get installed if I remove PHP FPM?
              – Dan Dascalescu
              Jan 9 at 23:22










            • @DanDascalescu Hmm. Might be a bad install/remove script for apt pkg or might be you have some other dependencies that install apache2 as dep (meaning a webserver is needed - and I believe apache2 is default web server). Could be a few things. Just not sure. Has the smell of a good post on AskUbuntu if you haven't found an answer.
              – bshea
              Jul 10 at 16:26


















            apt remove -s php7.0-fpm shows The following additional packages will be installed: apache2 apache2-bin apache2-data libapache2-mod-php7.0 libaprutil1-dbd-sqlite3 libaprutil1-ldap liblua5.1-0. Why would apache get installed if I remove PHP FPM?
            – Dan Dascalescu
            Jan 9 at 23:22




            apt remove -s php7.0-fpm shows The following additional packages will be installed: apache2 apache2-bin apache2-data libapache2-mod-php7.0 libaprutil1-dbd-sqlite3 libaprutil1-ldap liblua5.1-0. Why would apache get installed if I remove PHP FPM?
            – Dan Dascalescu
            Jan 9 at 23:22












            @DanDascalescu Hmm. Might be a bad install/remove script for apt pkg or might be you have some other dependencies that install apache2 as dep (meaning a webserver is needed - and I believe apache2 is default web server). Could be a few things. Just not sure. Has the smell of a good post on AskUbuntu if you haven't found an answer.
            – bshea
            Jul 10 at 16:26






            @DanDascalescu Hmm. Might be a bad install/remove script for apt pkg or might be you have some other dependencies that install apache2 as dep (meaning a webserver is needed - and I believe apache2 is default web server). Could be a few things. Just not sure. Has the smell of a good post on AskUbuntu if you haven't found an answer.
            – bshea
            Jul 10 at 16:26












            up vote
            0
            down vote













            The simplest option is still:



            apt rdepends package-name


            which does not require you to install any package.






            share|improve this answer

















            • 1




              What is this adding to the accepted answer?
              – l0b0
              Nov 26 at 23:58










            • The accepted answer has nothing to do with this one. The output is completely different and way more useful for human consumption than apt-cache's. The answer mentions that apt-cache is not installed by default everywhere - that alone should be a rather good hint why this answer has its purpose. finally, this is actually the answer I was looking for, so any downvote is rather silly.
              – stefanct
              Nov 28 at 13:21















            up vote
            0
            down vote













            The simplest option is still:



            apt rdepends package-name


            which does not require you to install any package.






            share|improve this answer

















            • 1




              What is this adding to the accepted answer?
              – l0b0
              Nov 26 at 23:58










            • The accepted answer has nothing to do with this one. The output is completely different and way more useful for human consumption than apt-cache's. The answer mentions that apt-cache is not installed by default everywhere - that alone should be a rather good hint why this answer has its purpose. finally, this is actually the answer I was looking for, so any downvote is rather silly.
              – stefanct
              Nov 28 at 13:21













            up vote
            0
            down vote










            up vote
            0
            down vote









            The simplest option is still:



            apt rdepends package-name


            which does not require you to install any package.






            share|improve this answer












            The simplest option is still:



            apt rdepends package-name


            which does not require you to install any package.







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Nov 26 at 23:10









            Corrado Topi

            491




            491








            • 1




              What is this adding to the accepted answer?
              – l0b0
              Nov 26 at 23:58










            • The accepted answer has nothing to do with this one. The output is completely different and way more useful for human consumption than apt-cache's. The answer mentions that apt-cache is not installed by default everywhere - that alone should be a rather good hint why this answer has its purpose. finally, this is actually the answer I was looking for, so any downvote is rather silly.
              – stefanct
              Nov 28 at 13:21














            • 1




              What is this adding to the accepted answer?
              – l0b0
              Nov 26 at 23:58










            • The accepted answer has nothing to do with this one. The output is completely different and way more useful for human consumption than apt-cache's. The answer mentions that apt-cache is not installed by default everywhere - that alone should be a rather good hint why this answer has its purpose. finally, this is actually the answer I was looking for, so any downvote is rather silly.
              – stefanct
              Nov 28 at 13:21








            1




            1




            What is this adding to the accepted answer?
            – l0b0
            Nov 26 at 23:58




            What is this adding to the accepted answer?
            – l0b0
            Nov 26 at 23:58












            The accepted answer has nothing to do with this one. The output is completely different and way more useful for human consumption than apt-cache's. The answer mentions that apt-cache is not installed by default everywhere - that alone should be a rather good hint why this answer has its purpose. finally, this is actually the answer I was looking for, so any downvote is rather silly.
            – stefanct
            Nov 28 at 13:21




            The accepted answer has nothing to do with this one. The output is completely different and way more useful for human consumption than apt-cache's. The answer mentions that apt-cache is not installed by default everywhere - that alone should be a rather good hint why this answer has its purpose. finally, this is actually the answer I was looking for, so any downvote is rather silly.
            – stefanct
            Nov 28 at 13:21


















            draft saved

            draft discarded




















































            Thanks for contributing an answer to Ask Ubuntu!


            • 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.





            Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


            Please pay close attention to the following guidance:


            • 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%2faskubuntu.com%2fquestions%2f128524%2fhow-to-list-dependent-packages-reverse-dependencies%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

            flock() on closed filehandle LOCK_FILE at /usr/bin/apt-mirror

            Mangá

            Eduardo VII do Reino Unido