Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

In my case I want to do aptitude install wireless-tools but want to know which files will be installed and where in the filesystem before I install the package.

share|improve this question

4 Answers 4

up vote 1 down vote accepted

install the 'apt-file' package:

apt-get install apt-file

you then can check contents of any package without downloading the package in advance:

apt-file list PACKAGENAME
share|improve this answer
Great perl script, thanks! –  Ian Jan 30 '13 at 21:35

You can go to packages.debian.org and search for the package you're interested in. Towards the bottom of each package's page, there's a link labeled [list of files] (one for each architecture) that will take you to the list of files to be installed. For example, here's the list of files for Python.

share|improve this answer
That's helpful, though it provides some weird results, look at the result for gnome: packages.debian.org/wheezy/all/gnome/filelist I suppose there should be waaaay more filesystem changes. –  Ian Jan 30 '13 at 18:56
Oh, yeah, this approach won't give you file lists from all the dependencies. Not sure how to get that... –  jjlin Jan 30 '13 at 19:04

You can download the .deb package without install it

apt-get --download-only install PACKAGENAME

And then list the contents of the .deb package.

dpkg --contents /var/cache/apt/archives/PACKAFILEGENAME.deb

share|improve this answer
That's a good workaround, thanks! –  Ian Jan 30 '13 at 19:00

There is always a question before starting the update as to whether you want to continue or not. You could still initiate the install and just say NO at the appropriate time.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.