Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

apt-cache search returns list of available packages. In my case I would like to look at the list of files that would be installed on my PC in case I install the package usb-creator-gtk.

Something like dpkg-query -L does for an already installed package.

Thanks for help.

share|improve this question

1 Answer 1

up vote 4 down vote accepted

You've got at least these two options.

First one, use apt-file for packages you haven't installed yet.

$ sudo apt-get install apt-file
$ sudo apt-file update
$ apt-file list usb-creator-gtk
usb-creator-gtk: /usr/bin/usb-creator-gtk
usb-creator-gtk: /usr/lib/python2.7/dist-packages/usbcreator/frontends/gtk/__init__.py
usb-creator-gtk: /usr/lib/python2.7/dist-packages/usbcreator/frontends/gtk/frontend.py
[...]

Second one, use the packages.ubuntu.com/ website to locate the packge, then all the way down on the page in the "Download" section, you'll find a link [list of files]. Example for your package is here.

Either way, please remember that packages might install more files in their install scripts!

share|improve this answer

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.