LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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-18-2010, 10:23 AM   #1
Mr. Alex
Senior Member
 
Registered: May 2010
Distribution: No more Linux. Done with it.
Posts: 1,238

Rep: Reputation: Disabled
'apt-get' help


Hi everybody!
How do I know all the files that some package uses? And how do I know all the packages that some package uses as dependencies?
With 'apt-get' command.
 
Old 07-18-2010, 10:26 AM   #2
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,528

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Take a look at
http://www.debian.org/doc/manuals/ap...tml#s-apt-file
 
Old 07-18-2010, 10:56 AM   #3
Mr. Alex
Senior Member
 
Registered: May 2010
Distribution: No more Linux. Done with it.
Posts: 1,238

Original Poster
Rep: Reputation: Disabled
So 'apt-file list firefox' shows all th files of 'firefox' package? It shows
Code:
[name-of-the-package]: [file]
?
 
Old 07-18-2010, 10:58 AM   #4
Mr. Alex
Senior Member
 
Registered: May 2010
Distribution: No more Linux. Done with it.
Posts: 1,238

Original Poster
Rep: Reputation: Disabled
if it shows
Code:
firefox-3.0-gnome-support: /usr/share/doc/firefox-3.0-gnome-support/changelog.Debian.gz
that means this file is not for 'firefox' package, but for 'firefox-3.0-gnome-support' package?
 
Old 07-18-2010, 11:58 AM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2017 CentOS6.9 CentOS7.3 + 50+ other Linux OS, for test only.
Posts: 16,742

Rep: Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318
http://linux.die.net/man/8/apt-cache

apt-cache depends firefox

dpkg -L firefox ( to list all files ) or :
http://packages.ubuntu.com/lucid/i386/firefox/filelist

... And may be it's also easier to see all dependencies
on the Ubuntu "package search site" :
http://packages.ubuntu.com/lucid/firefox

http://packages.ubuntu.com/lucid/
 
1 members found this post helpful.
Old 07-19-2010, 03:10 AM   #6
arunmagar
LQ Newbie
 
Registered: Feb 2010
Posts: 2

Rep: Reputation: 0
And how do I know all the packages that some package uses as dependencies?
With 'apt-get' command.


Hi,

I did not understand your question?
But I know one command through that we can install dependency packages for required package
suppose we have to install nautilus package and we don't have proper dependency for that.then we can use following commnad

$ sudo apt-get build-dep nautilus



From man page of apt-get ---
build-dep causes apt-get to install/remove packages in an attempt to satisfy the build dependencies for a source package.
 
  


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
I bricked my NAS? :( aptitude, apt-get, apt-cache segfaults immediately omegaworks Linux - Server 5 11-07-2009 09:21 AM
LXer: Create a Local Ubuntu Repository using Apt-Mirror and Apt-Cacher LXer Syndicated Linux News 0 08-04-2009 11:13 PM
apt pinning /etc/apt/apt.conf parent's_basement Debian 5 10-26-2008 06:50 PM
Howabout apt-get update ; apt-get upgrade -f -y --force-yes in the crontab every week frenchn00b Debian 1 04-05-2008 08:47 AM
apt-get update errors since Debian released ( bad /etc/apt/sources.list ?) forgox Debian 10 06-13-2005 01:28 PM

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

All times are GMT -5. The time now is 05:01 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