LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 07-09-2012, 10:53 AM   #1
5883
Member
 
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, 11:53 AM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,133
Blog Entries: 2

Rep: Reputation: 4839Reputation: 4839Reputation: 4839Reputation: 4839Reputation: 4839Reputation: 4839Reputation: 4839Reputation: 4839Reputation: 4839Reputation: 4839Reputation: 4839
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
 
Old 07-09-2012, 09:39 PM   #3
odiseo77
Senior Member
 
Registered: Dec 2004
Location: Caracas, Venezuela
Distribution: Debian Sid, OpenSUSE 42.2
Posts: 1,189

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

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


Reply


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 05:28 AM
list installed package files and how to know which package a file belongs bujecas Slackware 3 01-09-2010 03:14 PM
Is there a way I can create a package from a list of files? Romanus81 Slackware 3 12-25-2008 11:06 AM
How to list only files belong to a package linuxcrazyguy Debian 4 04-08-2007 07:02 PM
List files in a package before installing? humbletech99 Debian 3 06-02-2006 03:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:09 AM.

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