Results 1 to 8 of 8

Thread: Diff between DPKG and apt-get ...

  1. #1
    Join Date
    Aug 2013
    Beans
    9

    Question Diff between DPKG and apt-get ...

    Hi,

    I have noticed that few of the installers in Ubuntu will have an extension of .deb file where we need to install using "dpkg ..." command through terminal
    Few of them which are system defined packages are installed through "sudo apt-get install <XXXXX>" through terminal

    I would like to know what is the difference between these two scenarios. I have noticed that few of the files which i have tried to install through terminal using "apt-install" command will have an dependency issues.

    Please clarity the on this query.

    -SK

  2. #2
    Join Date
    Sep 2013
    Beans
    33

    Re: Diff between DPKG and apt-get ...

    dpkg is used to install files you have already downloaded from somewhere. apt-get downloads and installs the package directly from Ubuntu or other approved package providers. apt-get automatically installs any dependencies, dpkg does not.

    It is a bit strange that your experience is the opposite.

    Here is how I use each option:

    1) :~$ sudo apt-get install gnome-sushi

    1) Download a packge from some website
    2) ~$ cd Downloads/
    3) :~/Downloads$ sudo dpkg -i gnome-sushi.deb
    4) If dpkg gives dependency error, give up and search for a ppa with the package.

  3. #3
    Join Date
    Jul 2007
    Location
    Magic City of the Plains
    Beans
    Hidden!
    Distro
    Xubuntu 14.10 Utopic Unicorn

    Re: Diff between DPKG and apt-get ...

    What type of "installers" are you talking about, if not *.deb files?

  4. #4
    Join Date
    Feb 2007
    Location
    West Hills CA
    Beans
    8,507
    Distro
    Ubuntu 12.10 Quantal Quetzal

    Re: Diff between DPKG and apt-get ...

    "Installers" are typically scipts that install stuff. Debian packages (*.deb) are simply files that are compressed with a collection of files that go into specific places in the file system--this is the definition of "installed." Apt is simply a framework or a front-end for handling Debian packages.

    There is an order to user-friendliness:

    Software Center-->synaptic-->aptitude-->apt-get-->dpkg

    They all do the same thing. Open a terminal:

    Code:
    man apt
    man dpkg
    sudo apt-get moo
    Practice using each method above, and you will quickly see the differences.
    -------------------------------------
    Oooh Shiny: PopularPages

    Unumquodque potest reparantur. Patientia sit virtus.

  5. #5
    squakie is offline I Ubuntu, Therefore, I Am
    Join Date
    Oct 2012
    Beans
    2,238
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Diff between DPKG and apt-get ...

    For a newbie, I would suggest Synaptic Package Manager as mentioned above. In 13.04 up (I don't remember about 12.xx) you have to install it: sudo apt-get install synaptic

    Once that is installed you can look through thousamds of packages available.

  6. #6
    Join Date
    Aug 2013
    Beans
    9

    Re: Diff between DPKG and apt-get ...

    Alen, Thank you for your responce on my query.

    I am confused about dependency issue that i have mentioned in this email thread earlier. Yes are right.. dpkg is asking for dependencies to be installed rather 'apt-get'.
    this is issue i have noticed while i was tried to installed "google video plugin" for enabling video chat option.

    I will try suggested options.

    Thank you.
    -S

  7. #7
    Join Date
    Jul 2007
    Location
    UK
    Beans
    16,863
    Distro
    Ubuntu Development Release

    Re: Diff between DPKG and apt-get ...

    Gdebi is great for installing deb packages or even checking them too.

  8. #8
    squakie is offline I Ubuntu, Therefore, I Am
    Join Date
    Oct 2012
    Beans
    2,238
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Diff between DPKG and apt-get ...

    If you use the package manager it will get the dependencies for you.

    You can also do: sudo apt-get build-dep to have apt find and install the dependencies for you.

Bookmarks

Posting Permissions

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