How to list dependent packages (reverse dependencies)?
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgO9GURib1T8z7lCwjOGLQaGtrueEthgQ8LO42ZX8cOfTqDK4jvDDpKkLFwf2J49kYCMNW7d4ABih_XCb_2UXdq5fPJDkoyg7-8g_YfRUot-XnaXkNYycsNp7lA5_TW9td0FFpLQ2APzKcZ/s1600/1.jpg)
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYQ0N5W1qAOxLP7t7iOM6O6AzbZnkXUy16s7P_CWfOb5UbTQY_aDsc727chyphenhyphen5W4IppVNernMMQeaUFTB_rFzAd95_CDt-tnwN-nBx6JyUp2duGjPaL5-VgNO41AVsA_vu30EJcipdDG409/s400/Clash+Royale+CLAN+TAG%2523URR8PPP.png)
up vote
139
down vote
favorite
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
add a comment |Â
up vote
139
down vote
favorite
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
Related: askubuntu.com/questions/13296/â¦
â Sethâ¦
Feb 26 '15 at 3:58
5
The older question's answers all revolve aroundaptitude
, something that hasn't been installed by default for years. In 2017, everyone on Ubuntu still hasapt-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
add a comment |Â
up vote
139
down vote
favorite
up vote
139
down vote
favorite
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
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
package-management command-line dependencies
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 aroundaptitude
, something that hasn't been installed by default for years. In 2017, everyone on Ubuntu still hasapt-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
add a comment |Â
Related: askubuntu.com/questions/13296/â¦
â Sethâ¦
Feb 26 '15 at 3:58
5
The older question's answers all revolve aroundaptitude
, something that hasn't been installed by default for years. In 2017, everyone on Ubuntu still hasapt-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
add a comment |Â
5 Answers
5
active
oldest
votes
up vote
179
down vote
accepted
apt-cache rdepends packagename
should do what you want
1
Excellent!apt-cache rdepends tofrodos
confirmed the suspicion that it was installed by another package (the obsoleteddos2unix
).
â 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
 |Â
show 6 more comments
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.
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 wantreverse-depends
inubuntu-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 thatopenssh-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
add a comment |Â
up vote
14
down vote
apt-cache showpkg <pkgname>
Example:
apt-cache showpkg lightdm
add a comment |Â
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
What exactly doesrdepends
show in that tree?apt-rdepends php7.0-fpm
showssed
.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
add a comment |Â
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.)
apt remove -s php7.0-fpm
showsThe 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
add a comment |Â
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
1
Excellent!apt-cache rdepends tofrodos
confirmed the suspicion that it was installed by another package (the obsoleteddos2unix
).
â 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
 |Â
show 6 more comments
up vote
179
down vote
accepted
apt-cache rdepends packagename
should do what you want
1
Excellent!apt-cache rdepends tofrodos
confirmed the suspicion that it was installed by another package (the obsoleteddos2unix
).
â 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
 |Â
show 6 more comments
up vote
179
down vote
accepted
up vote
179
down vote
accepted
apt-cache rdepends packagename
should do what you want
apt-cache rdepends packagename
should do what you want
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 obsoleteddos2unix
).
â 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
 |Â
show 6 more comments
1
Excellent!apt-cache rdepends tofrodos
confirmed the suspicion that it was installed by another package (the obsoleteddos2unix
).
â 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
 |Â
show 6 more comments
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.
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 wantreverse-depends
inubuntu-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 thatopenssh-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
add a comment |Â
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.
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 wantreverse-depends
inubuntu-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 thatopenssh-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
add a comment |Â
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.
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.
edited Apr 3 '17 at 0:23
![](https://i.stack.imgur.com/OiVMR.png?s=32&g=1)
![](https://i.stack.imgur.com/OiVMR.png?s=32&g=1)
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 wantreverse-depends
inubuntu-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 thatopenssh-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
add a comment |Â
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 wantreverse-depends
inubuntu-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 thatopenssh-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
add a comment |Â
up vote
14
down vote
apt-cache showpkg <pkgname>
Example:
apt-cache showpkg lightdm
add a comment |Â
up vote
14
down vote
apt-cache showpkg <pkgname>
Example:
apt-cache showpkg lightdm
add a comment |Â
up vote
14
down vote
up vote
14
down vote
apt-cache showpkg <pkgname>
Example:
apt-cache showpkg lightdm
apt-cache showpkg <pkgname>
Example:
apt-cache showpkg lightdm
edited Oct 19 '13 at 1:55
![](https://i.stack.imgur.com/fSaxx.jpg?s=32&g=1)
![](https://i.stack.imgur.com/fSaxx.jpg?s=32&g=1)
Sethâ¦
32.8k24109159
32.8k24109159
answered Apr 30 '12 at 13:11
qorrow
30113
30113
add a comment |Â
add a comment |Â
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
What exactly doesrdepends
show in that tree?apt-rdepends php7.0-fpm
showssed
.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
add a comment |Â
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
What exactly doesrdepends
show in that tree?apt-rdepends php7.0-fpm
showssed
.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
add a comment |Â
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
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
edited Apr 27 at 14:25
![](https://i.stack.imgur.com/8CW8e.png?s=32&g=1)
![](https://i.stack.imgur.com/8CW8e.png?s=32&g=1)
Zanna
48.3k13120229
48.3k13120229
answered May 1 '12 at 13:52
papashou
2,240198
2,240198
What exactly doesrdepends
show in that tree?apt-rdepends php7.0-fpm
showssed
.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
add a comment |Â
What exactly doesrdepends
show in that tree?apt-rdepends php7.0-fpm
showssed
.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
add a comment |Â
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.)
apt remove -s php7.0-fpm
showsThe 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
add a comment |Â
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.)
apt remove -s php7.0-fpm
showsThe 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
add a comment |Â
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.)
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.)
edited Aug 22 '17 at 17:05
answered Aug 22 '17 at 16:53
bshea
39727
39727
apt remove -s php7.0-fpm
showsThe 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
add a comment |Â
apt remove -s php7.0-fpm
showsThe 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
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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 hasapt-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