LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   'apt-get' help (https://www.linuxquestions.org/questions/linux-newbie-8/apt-get-help-820529/)

Mr. Alex 07-18-2010 09:23 AM

'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.

repo 07-18-2010 09:26 AM

Take a look at
http://www.debian.org/doc/manuals/ap...tml#s-apt-file

Mr. Alex 07-18-2010 09:56 AM

So 'apt-file list firefox' shows all th files of 'firefox' package? It shows
Code:

[name-of-the-package]: [file]
?

Mr. Alex 07-18-2010 09:58 AM

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?

knudfl 07-18-2010 10:58 AM

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/

arunmagar 07-19-2010 02:10 AM

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.


All times are GMT -5. The time now is 09:26 PM.