Find the answer to your Linux question:
Results 1 to 5 of 5
When installing a software via 'dpkg -i packageA.deb', will the dependencies required by packageA be downloaded and installed automatically (aka aptitude/apt-get ) or are all the required dependencies already built ...
  1. #1
    Just Joined!
    Join Date
    Mar 2006
    Posts
    18

    What is the difference between dpkg and aptitude/apt-get?

    When installing a software via 'dpkg -i packageA.deb', will the dependencies required by packageA be downloaded and installed automatically (aka aptitude/apt-get ) or are all the required dependencies already built into packageA.deb package?

    Thanks !

  2. #2
    Linux User Daan's Avatar
    Join Date
    Aug 2005
    Location
    The Netherlands
    Posts
    320
    No, dpkg -i will just install the package without looking at dependencies. apt-get install looks at dependencies and invokes dpkg -i for the package and the packages it depends upon.

  3. #3
    Linux Enthusiast
    Join Date
    Jun 2005
    Location
    The Hot Humid South
    Posts
    602
    Daan, that not true, dpkg does check for dependencies, that's the whole point behind Debian's package management.

    A very good, and thorough, explanation can be found here (you don't have the read the whole thing, most of it is explained in the beginning):
    http://www.aboutdebian.com/packages.htm

  4. #4
    Linux Guru Vergil83's Avatar
    Join Date
    Mar 2004
    Posts
    2,408
    to put what Daan and bidi said together, dpkg will check for dependencies, but will not download or install them
    Brilliant Mediocrity - Making Failure Look Good

  5. #5
    Just Joined!
    Join Date
    Aug 2004
    Location
    New England
    Posts
    59

    expounding a bit

    I don't know what my comment will add to the empiricism of this thread, but...

    right that dpkg checks for deps and doesn't download them. What I have found, through accident, luck and ignorance is that if I use dpkg (I actually use a little script) to install a deb package and I notice in the terminal that there were dependancy problems, a quick trip to synaptic will remedy the problem. Synaptic will either download the required deps or remove the broken program because the deps are not available in the repos your machine is using.

    Again -- I didn't really add much to the discovery of this thread but I have found that it's the little tid-bits of knowlege that many people seek that are not often said, or written.

    --machiner

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •