Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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! – JohnnyFromBF 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. – JohnnyFromBF 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! – JohnnyFromBF 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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .