Results 1 to 7 of 7

Thread: difference between aptitude and apt-get?

  1. #1
    Join Date
    Apr 2011
    Beans
    159
    Distro
    Ubuntu 12.10 Quantal Quetzal

    difference between aptitude and apt-get?

    what is the difference between aptitude and apt-get?

    for instance
    Code:
     sudo aptitude dict install
    and
    Code:
     sudo aptitude remove dict
    or
    Code:
     sudo apt-get cowsay
    and
    Code:
     sudo apt-get remove cowsay
    not sure if i did those right, but what's the difference between using apt-get and aptitude?

  2. #2
    Join Date
    Oct 2008
    Location
    Maryland, USA
    Beans
    300
    Distro
    Kubuntu 9.10 Karmic Koala

    Re: difference between aptitude and apt-get?

    According to this article, the command 'aptitude' opens a text based interface to the package manager, while apt-get is a package manager command. You can learn more by reading the article and the many other resources that detail the use of the package manager.
    OpenSUSE: Dell Inspiron 8600 and Gateway GT5678
    MacOS X 10.5.8 PowerBook G4 12"
    Linux user #: 501795

  3. #3
    Join Date
    Jan 2007
    Beans
    6,542
    Distro
    Ubuntu 13.04 Raring Ringtail

    Re: difference between aptitude and apt-get?

    Bottom line: not much difference.

    They're both programs for using the package manager. As GregBrannon mentions, aptitude does have a text-based interface available, which makes it popular on servers, as it does a bit more than apt-get. But they're basically the same thing.

    Apt-get is installed by default on all versions of Ubuntu, aptitude is available in the repos.

  4. #4
    Join Date
    Jul 2007
    Location
    UK
    Beans
    17,039
    Distro
    Ubuntu Development Release

    Re: difference between aptitude and apt-get?

    Quote Originally Posted by RememberWhenItRained View Post
    what is the difference between aptitude and apt-get?
    Please see here.

    http://ubuntuforums.org/search.php?searchid=80345036

    And this.

    http://pthree.org/2007/08/12/aptitude-vs-apt-get/

  5. #5
    Join Date
    Jan 2007
    Beans
    Hidden!
    Distro
    Kubuntu 11.04 Natty Narwhal

    Re: difference between aptitude and apt-get?

    ..note that aptitude isn't installed anymore in vanilla Ubuntu.
    Anyone knows why?
    Best app ever: Easystroke

  6. #6
    Join Date
    Mar 2006
    Location
    Eastern United States
    Beans
    396

    Re: difference between aptitude and apt-get?

    Quote Originally Posted by RememberWhenItRained View Post
    what is the difference between aptitude and apt-get?

    for instance
    Code:
     sudo aptitude dict install
    and
    Code:
     sudo aptitude remove dict
    or
    Code:
     sudo apt-get cowsay
    and
    Code:
     sudo apt-get remove cowsay
    not sure if i did those right, but what's the difference between using apt-get and aptitude?
    When you use aptitude to remove a package that you installed with aptitude, any dependencies installed with that package are also removed. Using apt-get as you do above leaves behind the dependencies.

    In the examples you give above, let's assume that the package "dict" depends on the package "lex" and that "lex" was not originally installed on your system.

    Code:
    sudo aptitude install lex
    Installs the package "dict" and its dependency "lex".
    Code:
    sudo aptitude remove "dict"
    Removes the packages "dict" and "lex".
    Code:
    sudo apt-get install dict
    Installs the package "dict" and its dependency "lex".
    Code:
    sudo apt-get remove dict
    Removes the package "dict", but leaves "lex" installed. But:
    Code:
    sudo apt-get autoremove dict
    Removes the packages "dict" and "lex".

    If I recall correctly, older versions of apt-get from a couple of years ago did not have the autoremove option. For that reason
    I got in the habit of using aptitude to install and remove packages. Note that aptitude will not remove dependencies of a package installed by apt-get and vice-versa. FYI, it's also a good idea to
    Code:
    sudo aptitude update
    or
    Code:
    sudo apt-get update
    before installing packages.

    There are some other differences between aptitude and apt-get, but generally they can both be used to achieve the same results if you understand the correct options to use. For more information check out the man pages:

    Code:
    man aptitude
    and
    Code:
    man apt-get
    or post back with specific questions and we'll try to help.
    "Klaatu barada nikto"
    On the keyboard of life, always keep one finger on the escape button.
    Registered Linux User 424417

  7. #7
    Join Date
    Jul 2007
    Location
    UK
    Beans
    17,039
    Distro
    Ubuntu Development Release

    Re: difference between aptitude and apt-get?

    Quote Originally Posted by realzippy View Post
    ..note that aptitude isn't installed anymore in vanilla Ubuntu.
    Anyone knows why?
    To save space on the livecd I guess. Since both software centre and synaptic use apt.

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
  •