I am not aware of another way to do this – if that program has been already installed (not like those installed after installing a specialized program like debfoster
) – unless I have saved the message given by apt
or apt-get
: for example for Thunar it said:
The following additional packages will be installed:
exo-utils libexo-1-0 libexo-common libexo-helpers libgarcon-1-0
libgarcon-common libthunarx-2-0 libtumbler-1-0 libwnck-common libwnck22
libxfce4ui-1-0 libxfce4ui-common libxfce4util-bin libxfce4util-common
libxfce4util7 libxfconf-0-2 thunar-data thunar-volman tumbler tumbler-common
xfce4-panel xfconf
Are such information already available in Ubuntu without installing a separate tool like debfoster
? So, I am not asking about such tools (as answered here), but about a way to see packages that came with programs already installed through apt or apt-get.
Best Answer
Provided you have not installed anything in the meantime that shares any of the same dependencies, then one way would be to simulate removal of the package and take note of the automatically installed packages:
e.g.
NOTE: if there are other pending autoremovals (commonly, these are kernel packages resulting from automatic security updates) these will also show up in the output. In order to see only the automatically installed packages for the specific package you are interested in, run
sudo apt-get autoremove
first so thatapt
starts from a "clean" state.