Server Fault is a question and answer site for system and network administrators. 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

On ubuntu I would like to know which files that will be installed when running sudo aptitude install ruby-rvm.

So first I do sudo aptitude download ruby-rvm. Now I can do aptitude show ruby-rvm, but how can I get the list of files that will be installed during a sudo aptitude install ruby-rvm? something like dpkg -L ruby-rvm if I had installed it, I just want to know it before I install it.

share|improve this question
up vote 2 down vote accepted

I am not sure if aptitude can do such a thing. But you can use:

apt-file show package_name

It will show all files which this package will install. If you would like to list all files which package contains, you can do it like this:

apt-file list package_name

It will list all the files located inside a package.

If you do not have installed apt-file then use:

apt-get install apt-file

and update the cache (it will take some time) by:

apt-file update

You can also to which package specific file belongs:

apt-file search file_name

You can also list files in a package on this website List files in package Or you can use dpkg -L package_name (but as you mentioned, it is working on already installed packages) as mentioned by @topdog.

share|improve this answer

aptitude does not have the ability to show the files installed per package, use dpkg -L for that

share|improve this answer
dpkg -L requires the package to be installed. I was aksing for a solution prior to installing the package. – Jarl Sep 21 '12 at 14:03

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.