-   Linux - Newbie (
-   -   How to list the files for a ubuntu package ? (

5883 07-09-2012 11:53 AM

How to list the files for a ubuntu package ?
i can install a pkg using "apt-get install some.pkg",
now how to tell how many files and where they are installed ?

looked into help, used to be a apt-file, but not anymore.

BTW, why ubuntu is so hard to use these days,
becoming harder, a simple thing takes forever to search for answer.
You know the keyword, you can find it easily.
Otherwise never.

TobiSGD 07-09-2012 12:53 PM

Install apt-file, update its database:

sudo apt-get install apt-file
sudo apt-file update

Now you can use apt-file to look at the files in a package, for example

apt-file list openbox
Note that apt-file will list the contents of all packages that match the search pattern, in this case it will show the packages openbox, openbox-dev and openbox-themes.

For more info on apt-file have a look at

man apt-file

Hungry ghost 07-09-2012 10:39 PM

Another option is to use dpkg with the -L switch, like this:


dpkg -L firefox
Note that this only works with installed packages, whereas apt-file lists the contents of installed packages as well as packages that are in the repositories but are not installed in the system.

5883 07-24-2012 07:18 PM

it turned out to be that package has some kind of issue ...

All times are GMT -5. The time now is 06:04 PM.