[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: How to find dependency information for a package ?



Well, should'nt 'apt-cache depends' and the control file show the same
dependency info ? Here is the inconsistency I am seeing. Please let me know
if I am interpreting this wrongly - 

Control File
-----------
Depends: kaffe (>= 2:1.1.6-3) | java-gcj-compat-dev (>= 1.0.41-1) |
java2-runtime, libtomcat5-java (>= 5.0.30-12etch1), adduser (>= 3.34),
apache2-utils | apache-utils | apache2-common
Suggests: java-virtual-machine, libapache-mod-jk | libapache2-mod-jk,
tomcat5-webapps, tomcat5-admin

apt-cahce depends tomcat5 (I dont even see "jakarta-commons-launcher" in the
above file...)
----------------------------
tomcat5-5.5.26-1jpp.2.fc7
  Depends: jakarta-commons-launcher >= 0.9
  PreDepends: tomcat5-common-lib = 5.5.26-1jpp.2.fc7
  PreDepends: <config(tomcat5)>
    tomcat5-5.5.26-1jpp.2.fc7
  PreDepends: jakarta-commons-pool-tomcat5
  PreDepends: tomcat5-server-lib = 5.5.26-1jpp.2.fc7
  PreDepends: xml-commons-apis >= 1.3
    jdk-2000:1.6.0_05-fcs
  PreDepends: <jndi-ldap>
    java-1.5.0-gcj-1.5.0.0-14.fc7
    ldapjdk-4.17-1jpp.7
  PreDepends: <libgcc_s.so.1>
    libgcc-4.1.2-27.fc7
  PreDepends: jakarta-commons-daemon >= 1.0.1
  PreDepends: <libgcj_bc.so.1>
    libgcj-4.1.2-27.fc7
  PreDepends: jpackage-utils >= 1.6.0
  PreDepends: <java-gcj-compat>
    java-1.5.0-gcj-1.5.0.0-14.fc7
  PreDepends: </usr/sbin/useradd>
    shadow-utils-2:4.0.18.1-15.fc7
  PreDepends: </usr/sbin/groupadd>
    shadow-utils-2:4.0.18.1-15.fc7
  PreDepends: tomcat5-server-lib = 5.5.26-1jpp.2.fc7
  PreDepends: <java-devel>
    java-1.5.0-gcj-devel-1.5.0.0-14.fc7
  PreDepends: xml-commons-apis >= 1.3
    jdk-2000:1.6.0_05-fcs
  PreDepends: <libgcc_s.so.1(GCC_3.0)>
    libgcc-4.1.2-27.fc7
  PreDepends: <libpthread.so.0>
    glibc-2.6-4
  PreDepends: </bin/rm>
    coreutils-6.9-9.fc7
  PreDepends: <libdl.so.2>
    glibc-2.6-4
  PreDepends: jpackage-utils >= 1.6.0
  PreDepends: </sbin/chkconfig>
    chkconfig-1.3.34-1
  PreDepends: <libc.so.6>
    glibc-2.6-4
  PreDepends: xerces-j2 >= 2.7.1
  PreDepends: <libz.so.1>
    zlib-1.2.3-10.fc7
  PreDepends: findutils
  PreDepends: <librt.so.1>
    glibc-2.6-4
  PreDepends: jakarta-commons-collections-tomcat5
  PreDepends: jakarta-commons-dbcp-tomcat5
  PreDepends: <libm.so.6>
    glibc-2.6-4
  PreDepends: </bin/sh>
    bash-3.2-20.fc7
  PreDepends: </bin/sh>
    bash-3.2-20.fc7
  PreDepends: </bin/bash>
    bash-3.2-20.fc7
  PreDepends: <libc.so.6(GLIBC_2.1.3)>
    glibc-2.6-4
  PreDepends: <rtld(GNU_HASH)>
    glibc-2.6-4
  PreDepends: tomcat5-common-lib = 5.5.26-1jpp.2.fc7

apt-cache --download-only install tomcat5
------------------------------------------
Reading Package Lists... Done
Building Dependency Tree... Done
The following extra packages will be installed:
   axis (1.2.1-2jpp.7.fc7)
   bcel (5.1-10jpp.4.fc7)
   classpathx-jaf (1.0-9jpp.1)
   classpathx-mail (1.1.1-4jpp.3)
   eclipse-ecj (3.2.2-15.fc7)
   gcc-java (4.1.2-27.fc7)
   jakarta-commons-beanutils (1.7.0-5jpp.1)
   jakarta-commons-collections (3.1-9jpp.2.fc7.1)
   jakarta-commons-collections-tomcat5 (3.1-9jpp.2.fc7.1)
   jakarta-commons-daemon (1.0.1-6jpp.2.fc7)
   jakarta-commons-dbcp-tomcat5 (1.2.1-10jpp.1.fc7)
   jakarta-commons-digester (1.7-6jpp.1)
   jakarta-commons-discovery (0.3-4jpp.1)
   jakarta-commons-el (1.0-7jpp.1.fc7)
   jakarta-commons-httpclient (3.0.1-1jpp.1.fc7)
   jakarta-commons-launcher (1.1-1jpp.2.fc7)
   jakarta-commons-logging (1.0.4-6jpp.1)
   jakarta-commons-modeler (2.0-3jpp.1.fc7)
   jakarta-commons-pool-tomcat5 (1.3-9jpp.2.fc7.1)
   java-1.5.0-gcj (1.5.0.0-14.fc7)
   java-1.5.0-gcj-devel (1.5.0.0-14.fc7)
   java_cup (0.10-0.k.6jpp.1)
   jdom (1.0-4jpp.1)
   jpackage-utils (1.7.3-1jpp.3.fc7)
   libgcj-devel (4.1.2-27.fc7)
   libgcj-src (4.1.2-27.fc7)
   log4j (1.2.13-3jpp.2)
   mx4j (3.0.1-6jpp.4)
   regexp (1.4-3jpp.1.fc7)
   saxon (6.5.5-1jpp.2.fc7)
   sinjdoc (0.5-4.fc7)
   tomcat5-common-lib (5.5.26-1jpp.2.fc7)
   tomcat5-jasper (5.5.26-1jpp.2.fc7)
   tomcat5-jsp-2.0-api (5.5.26-1jpp.2.fc7)
   tomcat5-server-lib (5.5.26-1jpp.2.fc7)
   tomcat5-servlet-2.4-api (5.5.26-1jpp.2.fc7)
   wsdl4j (1.5.2-4jpp.1)
   xalan-j2 (2.7.0-6jpp.1)
   xerces-j2 (2.7.1-7jpp.2)
   xml-commons-apis (1.3.03-0jpp.1.fc7)
   xml-commons-resolver (1.1-1jpp.12)
The following NEW packages will be installed:
   axis (1.2.1-2jpp.7.fc7)
   bcel (5.1-10jpp.4.fc7)
   classpathx-jaf (1.0-9jpp.1)
   classpathx-mail (1.1.1-4jpp.3)
   eclipse-ecj (3.2.2-15.fc7)
   gcc-java (4.1.2-27.fc7)
   jakarta-commons-beanutils (1.7.0-5jpp.1)
   jakarta-commons-collections (3.1-9jpp.2.fc7.1)
   jakarta-commons-collections-tomcat5 (3.1-9jpp.2.fc7.1)
   jakarta-commons-daemon (1.0.1-6jpp.2.fc7)
   jakarta-commons-dbcp-tomcat5 (1.2.1-10jpp.1.fc7)
   jakarta-commons-digester (1.7-6jpp.1)
   jakarta-commons-discovery (0.3-4jpp.1)
   jakarta-commons-el (1.0-7jpp.1.fc7)
   jakarta-commons-httpclient (3.0.1-1jpp.1.fc7)
   jakarta-commons-launcher (1.1-1jpp.2.fc7)
   jakarta-commons-logging (1.0.4-6jpp.1)
   jakarta-commons-modeler (2.0-3jpp.1.fc7)
   jakarta-commons-pool-tomcat5 (1.3-9jpp.2.fc7.1)
   java-1.5.0-gcj (1.5.0.0-14.fc7)
   java-1.5.0-gcj-devel (1.5.0.0-14.fc7)
   java_cup (0.10-0.k.6jpp.1)
   jdom (1.0-4jpp.1)
   jpackage-utils (1.7.3-1jpp.3.fc7)
   libgcj-devel (4.1.2-27.fc7)
   libgcj-src (4.1.2-27.fc7)
   log4j (1.2.13-3jpp.2)
   mx4j (3.0.1-6jpp.4)
   regexp (1.4-3jpp.1.fc7)
   saxon (6.5.5-1jpp.2.fc7)
   sinjdoc (0.5-4.fc7)
   tomcat5 (5.5.26-1jpp.2.fc7)
   tomcat5-common-lib (5.5.26-1jpp.2.fc7)
   tomcat5-jasper (5.5.26-1jpp.2.fc7)
   tomcat5-jsp-2.0-api (5.5.26-1jpp.2.fc7)
   tomcat5-server-lib (5.5.26-1jpp.2.fc7)
   tomcat5-servlet-2.4-api (5.5.26-1jpp.2.fc7)
   wsdl4j (1.5.2-4jpp.1)
   xalan-j2 (2.7.0-6jpp.1)
   xerces-j2 (2.7.1-7jpp.2)
   xml-commons-apis (1.3.03-0jpp.1.fc7)
   xml-commons-resolver (1.1-1jpp.12)

I dont see the commonality in these outputs..

Thanks,
Shikha


Andrew Sackville-West wrote:
> 
> On Tue, Aug 12, 2008 at 01:09:56PM -0700, NewDeb wrote:
>> 
>> Hi all, 
>> 
>> I am trying to find the exhaustive list of dependencies of a particular
>> package (For example, package tomcat5_5.0.30-12etch1_all.deb) From what I
>> have read so far, there seem to be many ways of doing this and I tried
>> out
>> the following, but find that the information is different in all, save a
>> few
>> common things. 
>> 
>> 1) apt-cache depends tomcat5
> 
> this will show all thep packages tomcat5 directly depends on
> 
>> 2) dpkg --info tomcat5_5.0.30-12etch1_all.deb (to view the Depends filed
>> of
>> the control file)
> 
> this should as well.
> 
>> 3) apt-get --download-only install tomcat5 (thinking that this will be
>> the
>> raw list of files which dpkg tries to install)
> 
> this will give you the packages that tomcat5 depends on but *aren't
> already installed*. Note the distinction there.
> 
>> 
>> Why is the output of dependency packages not consistent ? Or am I doing
>> this
>> wrongly ?
> 
> I'm assuming that is the cause of the inconsistency, but then you
> haven't actually explained what the inconsistency is, so that's just a
> guess.
> 
> A
> 
>  
> 

-- 
View this message in context: http://www.nabble.com/How-to-find-dependency-information-for-a-package---tp18951753p18956667.html
Sent from the Debian User mailing list archive at Nabble.com.


Reply to: