PDA

View Full Version : [SOLVED] [11.04] Listing files in uninstalled package?



littlebigman
September 26th, 2011, 01:30 PM
Hello

I sometimes need to check which files will be installed by a package that I haven't installed yet.

I thought the following would to the trick...


apt-get install apt-file
apt-file update
apt-file show mypackage


... but it returns all occurences that contain "mypackage".

Is there a simpler way than downloading the package, and grepping through it?

apt-get -d install mypackage
ls -al /var/cache/apt/archives/ | grep mypackage


Thank you.

vinterkind
September 26th, 2011, 01:50 PM
Well you could get the .deb file via


apt-get -d install <package>

and then get the list with


dpkg -L <package>.deb

littlebigman
September 26th, 2011, 11:59 PM
Thanks for the tip :)