How to list dependent packages (reverse dependencies)?
up vote
147
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
147
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
147
down vote
favorite
up vote
147
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
5303722
5303722
asked Apr 30 '12 at 13:06
l0b0
3,89673158
3,89673158
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 |
6 Answers
6
active
oldest
votes
up vote
190
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
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
|
show 6 more comments
up vote
53
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
16
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 |
up vote
0
down vote
The simplest option is still:
apt rdepends package-name
which does not require you to install any package.
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
add a comment |
6 Answers
6
active
oldest
votes
6 Answers
6
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
190
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
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
|
show 6 more comments
up vote
190
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
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
|
show 6 more comments
up vote
190
down vote
accepted
up vote
190
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.7k362103
22.7k362103
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
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
|
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
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
|
show 6 more comments
up vote
53
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
53
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
53
down vote
up vote
53
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
n.st
733717
733717
answered May 1 '12 at 13:41
tumbleweed
7,1081734
7,1081734
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
16
down vote
apt-cache showpkg <pkgname>
Example:
apt-cache showpkg lightdm
add a comment |
up vote
16
down vote
apt-cache showpkg <pkgname>
Example:
apt-cache showpkg lightdm
add a comment |
up vote
16
down vote
up vote
16
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
Seth♦
33.7k26110160
33.7k26110160
answered Apr 30 '12 at 13:11
qorrow
32113
32113
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
Zanna
49.3k13126236
49.3k13126236
answered May 1 '12 at 13:52
papashou
2,260198
2,260198
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
40738
40738
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 |
up vote
0
down vote
The simplest option is still:
apt rdepends package-name
which does not require you to install any package.
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
add a comment |
up vote
0
down vote
The simplest option is still:
apt rdepends package-name
which does not require you to install any package.
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
add a comment |
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.
The simplest option is still:
apt rdepends package-name
which does not require you to install any package.
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
add a comment |
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
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
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
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
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