Announcement

Collapse
No announcement yet.

list of depedencies

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    list of depedencies

    hiii....
    have a question about dependencies
    i wanna know how to get a list of the packages that we have to download (dependencies) to install some program from apt-get so i can mannualy download from the others computer and install it to my comp
    thanks for reading...

    #2
    Re: list of depedencies

    Apt (and the front-ends) only show the first level dependencies:

    Example:
    Code:
    apt-cache show kcometen4
    or
    Code:
    apt-cache depends kcometen4
    will tell:
    Depends: kdebase-runtime (>= 4:4.1.96), kdebase-workspace-libs4+5, kdelibs5 (>= 4:4.1.96), libc6 (>= 2.4), libgcc1 (>= 1:4.1.1), libgl1-mesa-glx | libgl1, libglu1-mesa | libglu1, libqt4-opengl (>= 4.4.3), libqtcore4 (>= 4.4.3), libqtgui4 (>= 4.4.3), libstdc++6 (>= 4.1.1)
    apt-cache depends output will be:
    kcometen4
    Depends: kdebase-runtime
    Depends: kdebase-workspace-libs4+5
    Depends: kdelibs5
    Depends: libc6
    Depends: libgcc1
    |Depends: libgl1-mesa-glx
    Depends: <libgl1>
    libgl1-mesa-glx
    libgl1-mesa-swx11
    |Depends: libglu1-mesa
    Depends: <libglu1>
    libglu1-mesa
    Depends: libqt4-opengl
    Depends: libqtcore4
    Depends: libqtgui4
    Depends: libstdc++6

    But there is an application that will list the second and third (4.th...) level dependencies:

    Package: apt-rdepends
    Description: Recursively lists package dependencies
    This utility can recursively list package dependencies, either forwards
    or in reverse. It also lists forward build-dependencies. The output
    format closely resembles that of `apt-cache depends`. As well, it can
    generate .dot graphs, much like apt-cache in dotty mode.
    =>
    Code:
    apt-rdepends kcometen4
    and the output:
    kcometen4
    Depends: kdebase-runtime (>= 4:4.1.96)
    Depends: kdebase-workspace-libs4+5
    Depends: kdelibs5 (>= 4:4.1.96)
    Depends: libc6 (>= 2.4)
    Depends: libgcc1 (>= 1:4.1.1)
    Depends: libgl1
    Depends: libgl1-mesa-glx
    Depends: libglu1
    Depends: libglu1-mesa
    Depends: libqt4-opengl (>= 4.4.3)
    Depends: libqtcore4 (>= 4.4.3)
    Depends: libqtgui4 (>= 4.4.3)
    Depends: libstdc++6 (>= 4.1.1)
    kdebase-runtime
    Depends: kde-icons-oxygen (>= 4:4.2.0-0ubuntu1)
    Depends: kdebase-runtime-bin-kde4 (= 4:4.2.0-0ubuntu1)
    Depends: kdebase-runtime-data (>= 4:4.2.0-0ubuntu1)
    Depends: kdelibs5 (>= 4:4.1.96)
    Depends: libasound2 (>> 1.0.18)
    ...clicp..
    kdebase-runtime-bin-kde4
    Depends: kdebase-runtime (>= 4:4.1.96)
    Depends: kdelibs5 (>= 4:4.1.96)
    Depends: libc6 (>= 2.3.4)
    Depends: libgcc1 (>= 1:4.1.1)
    Depends: libqt4-dbus (>= 4.4.3)
    Depends: libqt4-network (>= 4.4.3)
    Depends: libqt4-svg (>= 4.4.3)
    Depends: libqt4-xml (>= 4.4.3)
    Depends: libqtcore4 (>= 4.4.3)
    Depends: libqtgui4 (>= 4.4.3)
    Depends: libstdc++6 (>= 4.1.1)
    Depends: libx11-6
    kdelibs5
    Depends: dbus-x11
    Depends: kdelibs-bin (>= 4:4.2.0-0ubuntu2)
    Depends: kdelibs5-data (>= 4:4.2.0-0ubuntu2)
    Depends: launchpad-integration
    Depends: libacl1 (>= 2.2.11-1)

    +++ lot of stuf
    Before you edit, BACKUP !

    Why there are dead links ?
    1. Thread: Please explain how to access old kubuntu forum posts
    2. Thread: Lost Information

    Comment


      #3
      Re: list of depedencies

      Great stuff, Rog -- Thanks!

      Comment


        #4
        Re: list of depedencies

        thanks...
        what about the list of packages that havnt been installed or downloaded

        Comment


          #5
          Re: list of depedencies

          I also have the same problem. Why does it need to download dependencies separately Everytime I downloads a file from from one computer and when I try to install it in another computer, It always says the dependencies are not satisfied . It's kind of headache to me. I have bunch of setups with me but nothing can be installed. Please can someone give me a solution for this?
          Is there a place or site that I can download the software with all the dependencies

          Thanks in advance.
          --------<br />Kasun Gajasinghe,<br />University of Moratuwa,<br />Sri Lanka.<br /><br />Blog: http://kasunbg.blogspot.com<br />Twitter: http://twitter.com/kasunbg

          Comment


            #6
            Re: list of depedencies

            I also have the same problem. Why does it need to download dependencies separately...
            ...Is there a place or site that I can download the software with all the dependencies
            There could be (https://help.ubuntu.com/community/OperaBrowser):

            Static version:
            Opera has the Qt library built in. It is a larger download, and it does not use anti aliased fonts on menus or the file chooser, and uses aliasing in the browser window and most other interface elements.
            Shared version:
            Opera uses the Qt installation on your system. It integrates with the system, using whatever anti aliasing setting you have for other Qt applications.

            Without net connection it is a pain to solve the dependencies. Here (>Dependency network) is a page whitch will:
            graphically displays the dependencies, called dependency maps. Search for your favorite package and see how dependent a software is on other packages.
            An example graph > Adept graph

            Note !
            You could make those graphs yourself (kind of) > Viewing dependencies graphically on apt based systems.


            Earlier > FAQ: Kubuntu without internet connection
            Before you edit, BACKUP !

            Why there are dead links ?
            1. Thread: Please explain how to access old kubuntu forum posts
            2. Thread: Lost Information

            Comment


              #7
              Re: list of depedencies

              what about the list of packages that havnt been installed or downloaded

              Hmm - maybe something like this ( not recommended - maybe someone else knows a better way ):


              Packages that will be needed

              Code:
              apt-rdepends --show=DEPEND package_name_here | sort > Depends.txt
              /1/, /2/

              Already installed

              Earlier > FAQ: How to get list of installed packages

              => Modifying a bit =>
              Code:
              dpkg --get-selections | grep -v deinstall | awk '{ print $1 '} | sort > Installed.txt
              or
              Code:
              dpkg --get-selections | awk '$2 !~/deinstall/{ print $1 '} | sort > Installed.txt
              /3/


              Looking differences

              This should tell the packages that will be need to install:
              Code:
              comm -23 Depends.txt Installed.txt
              /4/


              BUT (and it is a very big fat BUT)

              This will list virtual packages /5/ as needed to install, even when it is allready installed.
              This will list packages that have conditional packages (package foo or package fii) =>

              Depends: foo | fii
              => will list both packages as needed to install...




              /1/ man apt-rdepends
              NAME
              apt-rdepends - performs recursive dependency listings similar to apt-cache

              SYNOPSIS
              apt-rdepends [options] [pkgs ...]
              /2/ man sort
              NAME
              sort - sort lines of text files

              SYNOPSIS
              sort [OPTION]... [FILE]...
              /3/ > The GNU Awk User's Guide

              /4/ man comm
              NAME
              comm - compare two sorted files line by line

              SYNOPSIS
              comm [OPTION]... FILE1 FILE2

              DESCRIPTION
              Compare sorted files FILE1 and FILE2 line by line.

              With no options, produce three-column output. Column one contains lines unique to FILE1, column two contains lines unique to
              FILE2, and column three contains lines common to both files.

              -1 suppress lines unique to FILE1

              -2 suppress lines unique to FILE2

              -3 suppress lines that appear in both files
              /5/ > Debian Policy Manual Chapter 3 - Binary packages
              3.6 Virtual packages

              Sometimes, there are several packages which offer more-or-less the same functionality. In this case, it's useful to define a virtual package whose name describes that common functionality. (The virtual packages only exist logically, not physically; that's why they are called virtual.) The packages with this particular function will then provide the virtual package.
              Before you edit, BACKUP !

              Why there are dead links ?
              1. Thread: Please explain how to access old kubuntu forum posts
              2. Thread: Lost Information

              Comment

              Working...
              X