How to list dependent packages (reverse dependencies)?

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








up vote
139
down vote

favorite
55












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
139
down vote

favorite
55












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
139
down vote

favorite
55









up vote
139
down vote

favorite
55






55





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

5053722




5053722










asked Apr 30 '12 at 13:06









l0b0

3,82773158




3,82773158











  • 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










5 Answers
5






active

oldest

votes

















up vote
179
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






  • 25




    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






  • 2




    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
51
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
14
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











    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: false,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    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






























    5 Answers
    5






    active

    oldest

    votes








    5 Answers
    5






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    179
    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






    • 25




      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






    • 2




      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
    179
    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






    • 25




      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






    • 2




      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
    179
    down vote



    accepted







    up vote
    179
    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.4k359102




    22.4k359102







    • 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






    • 25




      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






    • 2




      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






    • 25




      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






    • 2




      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




    25




    25




    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




    2




    2




    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
    51
    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
    51
    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
    51
    down vote










    up vote
    51
    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

    713717




    713717










    answered May 1 '12 at 13:41









    tumbleweed

    7,0421634




    7,0421634







    • 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
    14
    down vote













    apt-cache showpkg <pkgname> 


    Example:



    apt-cache showpkg lightdm





    share|improve this answer


























      up vote
      14
      down vote













      apt-cache showpkg <pkgname> 


      Example:



      apt-cache showpkg lightdm





      share|improve this answer
























        up vote
        14
        down vote










        up vote
        14
        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♦

        32.8k24109159




        32.8k24109159










        answered Apr 30 '12 at 13:11









        qorrow

        30113




        30113




















            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

            48.3k13120229




            48.3k13120229










            answered May 1 '12 at 13:52









            papashou

            2,240198




            2,240198











            • 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

            39727




            39727











            • 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


















             

            draft saved


            draft discarded















































             


            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













































































            Popular posts from this blog

            pylint3 and pip3 broken

            Missing snmpget and snmpwalk

            How to enroll fingerprints to Ubuntu 17.10 with VFS491