Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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
add comment

2 Answers

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
add comment

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
add comment

Your Answer

 
discard

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.