Forum     

Go Back   Digit Technology Discussion Forum > Software > Open Source
Register FAQ Calendar Mark Forums Read

Open Source A place where you can talk to like-minded people about the fastest growing software movement today! Discuss anything and everything about Open Source software and Operating Systems.


Closed Thread
 
LinkBack Thread Tools Display Modes
Old 20-06-2006, 11:08 AM   #1 (permalink)
Broken In
 
Join Date: Jun 2005
Posts: 127
Question Command to see dependencies of a package in Ubuntu


Can anyone suggest me a command to view the dependencies needed to install a particular package in the ubuntu. As I don't have a net connection at home i need to download packages. It will be very useful if there is some command to show dependencies needed in that system to install a particular package downloaded. For example if i download xmms.deb , the depencies needed to install it my system.
vinayasurya is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 20-06-2006, 05:22 PM   #2 (permalink)
Wise Old Owl
 
JGuru's Avatar
 
Join Date: Dec 2005
Location: Space-time continuum
Posts: 1,646
Default Re: Command to see dependencies of a package in Ubuntu

Use Synaptic Package manager. Open a terminal type :
gksudo /usr/sbin/synaptic . search for the package & if found mark it for installation. Now from the Edit menu -> Apply Marked Changes. Synaptic will
automatically install the package & its dependencies automatically. So you don't need to worry about anything!!
JGuru is offline  
Old 20-06-2006, 05:54 PM   #3 (permalink)
FooBar Guy
 
GNUrag's Avatar
 
Join Date: Jun 2004
Location: GNUmbai
Posts: 1,245
Default Re: Command to see dependencies of a package in Ubuntu

Quote:
Originally Posted by JGuru
Use Synaptic Package manager. Open a terminal type :
gksudo /usr/sbin/synaptic . search for the package & if found mark it for installation. Now from the Edit menu -> Apply Marked Changes. Synaptic will
automatically install the package & its dependencies automatically. So you don't need to worry about anything!!
He perhaps knows how to do that. Please read carefully.. He wants to know the dependency tree.

vinayasurya, You might want to read through this file. /var/lib/apt/lists/us.archive.ubuntu.com_ubuntu_dists_dapper_main_bin ary-i386_Packages

In there you'll find different sections
Code:
Depends: libart-2.0-2 (>= 2.3.16), libatk1.0-0 (>= 1.9.0), libc6 (>= 2.3.4-1), libcairo2 (>= 1.0.2-2), libenchant1c2a (>= 1.2.0), libfontconfig1 (>= 2.3.0), libfreetype6 (>= 2.1.10-1), libfribidi0 (>= 0.10.7-1), libgcc1 (>= 1:4.0.2), libglade2-0 (>=
1:2.5.1), libglib2.0-0 (>= 2.10.0), libgnomecanvas2-0 (>= 2.11.1), libgnomeprint2.2-0 (>= 2.12.1), libgnomeprintui2.2-0 (>= 2.12.1), libgtk2.0-0 (>= 2.8.0), libpango1.0-0 (>= 1.12.2), libperl5.8 (>= 5.8.7), libpng12-0 (>= 1.2.8rel), libpopt0 (>= 1.7), libstdc++6 (>= 4.0.2-4), libx11-6, libxcursor1 (>> 1.1.2), libxext6, libxfixes3, libxft2 (>> 2.1.1), libxi6, libxinerama1,
libxml2 (>= 2.6.24), libxrandr2, libxrender1, zlib1g (>= 1:1.2.1), abiword-common (>= 2.4.1)
Conflicts: abiword-gtk, abiword-gnome
Above it the output for Abiword.. then you have to find dependencies for libart, libatk.. this is all a pyramid chain.. so if you are willing to identify all the packages and download then separately then, well.. go ahead!!

There might be a command to view these details, but i dont know of them as yet.. if none exists then i might write a script to do this in near future.
__________________
- --
http://web.gnuer.org

Last edited by GNUrag; 20-06-2006 at 05:57 PM.
GNUrag is offline  
Old 20-06-2006, 07:47 PM   #4 (permalink)
18 Till I Die............
 
Join Date: Jul 2004
Location: India, Mumbai, Marine Lines
Posts: 5,792
Default Re: Command to see dependencies of a package in Ubuntu

But, GNUrag is dependancy calculated before hand? I mean vinyasurya has said that he doesn't have a internet connection. So, by default not all the repositories are enabled. So, the amount of software that will be shown will be limited. Will all the software in the portage be shown by synaptic without updating the repository?
Will he only see the softwares and their dependancies that are enabled by default/installed or can he see all? If he can't see all the softwares and their dependancies it won't be of much use.
mehulved is offline  
Old 21-06-2006, 12:09 PM   #5 (permalink)
Broken In
 
Join Date: Jun 2005
Posts: 127
Question Re: Command to see dependencies of a package in Ubuntu

I think there is some confusion in my question. I will explain. Suppose i want to install xmms. I go to http://packages.ubuntu.com and downloaded the xmms1.2.10+cvs20050809-4ubuntu5.deb package. Then there will be some dependenices right, which are not installed in the default installation and that are not in the ubuntu cdrom. I want to know if there exists any command to show those depedency list that are needed to get the package running in my system so that i can those separately and install. This is because the pacakge manager shows only one dependency at a time and some with different versions little confusing as well. Thanks in advance. The problem is that i can't access net in linux because my modem is not detected.

Last edited by vinayasurya; 21-06-2006 at 12:43 PM.
vinayasurya is offline  
Closed Thread

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


 
Latest Threads
- by topgear

Advertisement




All times are GMT +5.5. The time now is 08:46 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2