Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Debian This forum is for the discussion of Debian Linux.


  Search this Thread
Old 03-04-2012, 01:58 AM   #1
Registered: Sep 2011
Location: Las Vegas!
Distribution: Ubuntu n' Flavors, ReactOS, MINIX3, FreeDOS, Arch
Posts: 339

Rep: Reputation: Disabled
aptitude install xxxxxx vs. apt-get install

In some cases I have seen people tell me to do aptitude installl xxxx and apt-get install xxxx in others. Are there any advantages/disadvantages to doing ether of these vs the other?
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 03-04-2012, 03:30 AM   #2
Randicus Draco Albus
Senior Member
Registered: May 2011
Location: Hiding somewhere on planet Earth.
Distribution: No distribution. OpenBSD operating system
Posts: 1,672
Blog Entries: 8

Rep: Reputation: 604Reputation: 604Reputation: 604Reputation: 604Reputation: 604Reputation: 604
This is an excerpt from the Debian Reference manual.

2.2. Basic package management operations
 Basic package management operations on the Debian system can be performed by any package management tools available on the Debian system. Here, we explain basic package management tools: apt-get / apt-cache and aptitude.
 For the package management operation which involves package installation or updates package metadata, you need to have root privilege.

   2.2.1. apt-get / apt-cache vs. aptitude 
 The apt-get and apt-cache commands are the most basic package management tool.
  • apt-get and apt-cache offer only the commandline user interface.
  • apt-get is most suitable for the major system upgrade between releases, etc.
  • apt-get offers a robust and stable package resolver which uses the common package state data.
  • apt-get is less demanding on hardware resources. It consumes less memory and runs faster.
  • apt-get has been updated to support autoinstall and autoremove of recommended packages.
  • apt-get has been updated to support logging of package activities.
  • apt-cache offers a standard regex based search on the package name and description.
  • apt-get and apt-cache can manage multiple versions of packages using /etc/apt/preferences but it is quite cumbersome.
The aptitude command is the most versatile package management tool.
  • aptitude offers the fullscreen interactive text user interface.
  • aptitude offers the commandline user interface, too.
  • aptitude is most suitable for the daily interactive package management such as inspecting installed packages and searching available packages.
  • aptitude is more demanding on hardware resources. It consumes more memory and runs slower.
  • aptitude offers an enhanced package resolver which also uses an extra package state data used only by aptitude.
  • aptitude supports autoinstall and autoremove of recommended packages.
  • aptitude supports logging of package activities.
  • aptitude offers an enhanced regex based search on all of the package metadata.
  • aptitude can manage multiple versions of packages without using /etc/apt/preferences and it is quite intuitive.
Note Although the aptitude command comes with rich features such as its enhanced package resolver, this complexity has caused (or may still causes) some regressions such as Bug #411123, Bug #514930, and Bug #570377. In case of doubt, please use the apt-get and apt-cache commands over the aptitude command.
2 members found this post helpful.
Old 03-16-2012, 09:22 AM   #3
LQ Newbie
Registered: Mar 2012
Posts: 10

Rep: Reputation: 1
apt-get install

I always used apt-get install and I had no problems
Old 03-16-2012, 10:06 PM   #4
Senior Member
Registered: Oct 2008
Location: S.E. Montana
Distribution: Debian Testing, Stable, Sid and Manjaro, Mageia 3, LMDE
Posts: 2,623

Rep: Reputation: 493Reputation: 493Reputation: 493Reputation: 493Reputation: 493
I use apt-get about 90% of the time.

There are things that aptitude can do that apt-get just can't.

They are both great tools and you should use the one that fits you the best.
Old 03-22-2012, 07:15 AM   #5
Registered: Feb 2007
Location: Caracas, Venezuela
Distribution: Debian x64
Posts: 156

Rep: Reputation: 17
It's your choice my friend, i use aptitude 100% of the time, and not graphical, the command line. You should try both and pick your favorite one



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] can not run aptitude nor apt-get to install any package rewesh Debian 7 10-20-2011 06:06 PM
apt-get install synaptic / aptitude install synaptic not working :S LittlePenguin Linux - Newbie 5 01-19-2011 08:25 AM
how to use apt-get/aptitude/dpkg in ubuntu to install packages on a HDD (booting ubuntu from CD) gujedan Linux - Newbie 1 10-07-2010 07:02 AM
(new install)) How does one install Synaptic package manager... Aptitude cannot find Pooped Debian 9 08-23-2010 01:31 AM
apt aptitude commands not working - how to install packages w/ damn small linux? lenou Linux - Newbie 3 01-23-2010 10:00 AM > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 02:06 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration