This is similar to How can I list all files which have been installed by an APT package? However, I want to know which files will be installed as the package has not been installed, yet.
Example: I wanted to list all files which will be installed by APT package
xorg. In other words: all files which will possibly be created when I type
apt install xorg. However,
apt-file listed only the immediate files of
xorg - not of its dependencies:
$ apt-file list xorg xorg: /usr/share/bug/xorg/script xorg: /usr/share/doc/xorg/changelog.gz xorg: /usr/share/doc/xorg/copyright xorg: /usr/share/lintian/overrides/xorg
How can I list all associated files?
(I will add an awful
bash pipe combination as an answer. This is what I'm using right now, but its just a loop with many calls to
apt-file and therefore very, very slow. I'm looking for a better answer.)