LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to list the files for a ubuntu package ? (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-list-the-files-for-a-ubuntu-package-4175415712/)

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:
Code:

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
Code:

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
Code:

man apt-file

Hungry ghost 07-09-2012 10:39 PM

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

Code:

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.