Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 07-09-2012, 11:53 AM   #1
Registered: Aug 2004
Posts: 173

Rep: Reputation: 0
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.
Old 07-09-2012, 12:53 PM   #2
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
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
Old 07-09-2012, 10:39 PM   #3
Hungry ghost
Senior Member
Registered: Dec 2004
Posts: 1,222

Rep: Reputation: 667Reputation: 667Reputation: 667Reputation: 667Reputation: 667Reputation: 667
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.
Old 07-24-2012, 07:18 PM   #4
Registered: Aug 2004
Posts: 173

Original Poster
Rep: Reputation: 0
it turned out to be that package has some kind of issue ...


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] [Debian/Ubuntu] List files in uninstalled package? littlebigman Linux - Software 1 03-17-2011 06:28 AM
list installed package files and how to know which package a file belongs bujecas Slackware 3 01-09-2010 04:14 PM
Is there a way I can create a package from a list of files? Romanus81 Slackware 3 12-25-2008 12:06 PM
How to list only files belong to a package linuxcrazyguy Debian 4 04-08-2007 08:02 PM
List files in a package before installing? humbletech99 Debian 3 06-02-2006 04:35 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:23 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration