What is the actual distinction in between "apt-get" and also "aptitude"? (Just how around "wajig"?)

I recognize that both apt-get and also aptitude are command line package management user interfaces on Debian acquired Linux, with various alternatives, yet I'm still rather overwhelmed. Under the hood, aren't they making use of the very same APT system?

Why does Debian keep these parallel devices? (Incentive inquiry: what in the world is wajig?)

0
2019-05-04 10:05:08
Source Share
Answers: 8

Both apt - get and also aptitude rely upon the APT collection, yes.

See my answer on serverfault.com.

Debian is not a monolithic entity, there are individuals with various point of views and also the aptitude maintainer determined that apt - get had some imperfections and also intended to construct something much better with aptitude. He boosted the reasoning to locate remedies for intricate upgrade circumstances, included a GUI for the console, etc And there is greater than simply apt - get and also aptitude, see my write-up apt-get, aptitude, … pick the right package manager for you.

0
2019-12-04 06:53:50
Source

apt-get, along with the numerous friend devices, make use of dramatically much less memory than corresponding command - line conjurations of aptitude, and also are a little bit quicker. I was completely not aware of this till I attempted updating the debian install on a wizened old pentium thinkpad with 32MB of ram. It would certainly take a hr or 2 of swap - knocking to run apt-get, which finished efficiently ; aptitude would certainly fall short after I assume a longer amount of time.

This difference is essentially unnecessary on anything appearing like a modern-day desktop computer system.

0
2019-05-20 23:20:49
Source

The most noticeable distinction is that aptitude gives an incurable food selection user interface (just like Synaptic in an incurable), whereas apt-get does not.

Taking into consideration just the command - line user interfaces of each, they are fairly comparable, and also essentially, it actually does not matter which one you make use of. Current variations of both will certainly track which plans were by hand mounted, and also which were mounted as dependences (and also consequently qualified for automated elimination). Actually, I think that a lot more lately, both devices were upgraded to in fact share the very same data source of by hand vs instantly mounted plans, so instances where you install something with apt - get and afterwards aptitude intends to uninstall it are primarily a distant memory.

There are a couple of small distinctions :

  • aptitude will instantly remove qualified plans, whereas apt - get calls for a different command to do so
  • The commands for upgrade vs. dist - upgrade have actually been relabelled in aptitude to the possibly extra exact names secure - upgrade and also complete - upgrade , specifically.
  • aptitude in fact executes the features of not simply apt - get, yet additionally several of its friend devices, such as apt - cache and also apt - mark.
  • aptitude has a somewhat various question syntax for looking (contrasted to apt - cache)
  • aptitude has the why and also why - not commands to inform you which by hand mounted plans are protecting against an activity that you could intend to take.
  • If the activities (mounting, getting rid of, upgrading plans) that you intend to take reason problems, aptitude can recommend numerous possible resolutions. apt - get will certainly simply claim "I'm sorry Dave, I can not permit you to do that."

There are various other tiny distinctions, yet those are one of the most vital ones that I can consider.

Basically, aptitude extra effectively belongs in the group with Synaptic and also various other greater - degree plan supervisor frontends. It simply takes place to additionally have a command - line user interface that appears like apt - get.

Incentive Round : What is wajig?

Bear in mind just how I stated those "friend" devices like apt - cache and also apt - mark? Well, there's a number of them, and also if you utilize them a whole lot, you could not bear in mind which ones give which regulates. wajig is one remedy to that trouble. It is basically a dispatcher, a wrapper around every one of those devices. It additionally uses sudo when essential. When you claim wajig install foo, wajig claims "Ok, install is given by apt-get and also calls for admin advantages," and also it runs sudo apt-get install foo. When you claim wajig search foo, wajig claims "Ok, search is given by apt-cache and also does not call for admin advantages," and also it runs apt-cache search foo. If you make use of wajig as opposed to apt - get, apt - mark, apt - cache and also others, after that you'll never ever have this trouble :

$ apt-get search foo
E: Invalid operation search

If you need to know what wajig is doing behind the scenes, which devices it is making use of to implement a certain command, it has --simulate and also --teaching settings.

2 wajig regulates that I usually make use of are wajig listfiles foo and also wajig whichpkg /usr/bin/foo.

0
2019-05-08 18:09:39
Source

As stated be http://pthree.org/2007/08/12/aptitude-vs-apt-get/, aptitude has a a lot easier to make use of command - line user interface.

Under the hood, aren't they making use of the very same APT system? Yes.

The hidden system is not simply apt, yet dpkg. This system is equally as foolish as RPM, it can just take care of the installment and also management of solitary plans. It tracks which mounted documents come from which plan.

apt takes care of the downloads of databases, monitoring of dependences, and more for all specific plans - which it after that mounts making use of dpkg. aptitude does the very same, with a various user interface.

0
2019-05-08 13:07:17
Source

aptitude is the recommended program for package management from console both for plan installments and also plan or system upgrades in Debian.

Below is a review of the device and also the attributes it has more than apt - get : http://www.debian.org/doc/FAQ/ch-pkgtools.en.html#s-aptitude

So, my suggestions is to simply apt - get install aptitude :)

0
2019-05-08 13:01:21
Source

They supply the very same standard capability : install and also remove plans from the command - line.

Here's an extra thorough contrast, uploaded on the Ubuntu Stack Exchange website : https://askubuntu.com/questions/1743/is-aptitude-really-better-than-apt-get/1749#1749

0
2019-05-08 12:49:57
Source

aptitude bears in mind which plans were clearly asked for and also which were just mounted as a result of dependences. It will instantly uninstall plans which were not clearly asked for when they are no more required.

apt-get deals with plans asked for clearly and also their dependences the very same.

So far better usage aptitude, this aids to maintain your system tidy.

0
2019-05-08 01:48:32
Source

I've usually questioned myself. Wikipedia highlights that the major identifying attribute is that aptitude has a complete screen text-mode (curses ) user interface. The reality that you can make use of most apt-get command debates with aptitude itself is simply a layout choice to make it less complicated for apt-get customers to relocate to aptitude and also vice-versa.

I've never ever made use of wajig, yet the documents recommends that it's simply a manuscript which recognizes whether you're passing it a deb documents (when it runs dpkg ) or an apt plan name (when it runs apt-get rather ). Could you attempt it out and also see if that is what it does?

Certainly, the actual distinction is :

[email protected]:~$ apt-get moo
         (__) 
         (oo) 
   /------\/ 
  / |    ||   
 *  /\---/\ 
    ~~   ~~   
...."Have you mooed today?"...
[email protected]:~$ aptitude moo
There are no Easter Eggs in this program.
0
2019-05-07 23:03:15
Source