Apt or Aptitude Confusion

Post your Debian questions here.

Apt or Aptitude Confusion

Postby llewellen » May 25th, 2018, 2:59 am

What is the difference between them? Is one preferred over the other in some situations? How to tell? Thank you.
Last edited by llewellen on May 25th, 2018, 5:14 pm, edited 1 time in total.
llewellen
 
Posts: 8
Joined: April 8th, 2018, 5:58 am
Location: Vancouver Island, Canada

Re: Apt of Aptitude Confusion

Postby cynwulf » May 25th, 2018, 12:27 pm

dpkg(8) and apt(8) are the Debian package management tools.

apt does not necessarily replace apt-get(8). apt is just a simplified tool/front end for apt (very confusing naming!). From the Debian man page:

https://manpages.debian.org/stretch/apt/apt.8.en.html

apt provides a high-level commandline interface for the package management system. It is intended as an end user interface and enables some options better suited for interactive usage by default compared to more specialized APT tools like apt-get(8) and apt-cache(8).

All features of apt(8) are available in dedicated APT tools like apt-get(8) and apt-cache(8) as well. apt(8) just changes the default value of some options (see apt.conf(5) and specifically the Binary scope). So you should prefer using these commands (potentially with some additional options enabled) in your scripts as they keep backward compatibility as much as possible.


aptitude(8) is another apt front end

https://manpages.debian.org/stretch/apt ... .8.en.html
DESCRIPTION
aptitude is a text-based interface to the Debian GNU/Linux package system.
It allows the user to view the list of packages and to perform package management tasks such as installing, upgrading, and removing packages. Actions may be performed from a visual interface or from the command-line.


It wraps up a lot of the apt-get and apt-cache(8) functionality into one tool which has an ncurses interface as well as being command line driven - and it adds a lot of interesting functionality which is otherwise only available by piping output from the above commands and the "Search Patterns" which were very useful and powerful. When I used Debian it was my favoured tool, but it's a case of "horses for courses".
cynwulf
 
Posts: 2548
Joined: April 26th, 2011, 2:46 pm

Re: Apt of Aptitude Confusion

Postby jheaton5 » May 25th, 2018, 5:03 pm

I typically us apt or apt-get to update/install packages. But I use aptitude search to do a package search because I like the info and format better than apt/apt-get search. IMO it's a matter of preference.
jheaton5
 
Posts: 1776
Joined: February 9th, 2011, 10:25 am
Location: Newnan, GA USA

Re: Apt of Aptitude Confusion

Postby Pick2 » May 25th, 2018, 5:12 pm

Just to increase the confusion , let us not forget Synaptic:
https://wiki.debian.org/HowToSynaptic
Just folded space from Arrakis
Fugitive of the fdn re-education camp.
User avatar
Pick2
 
Posts: 172
Joined: February 10th, 2011, 1:22 am
Location: Decatur , Illinois , USA

Re: Apt or Aptitude Confusion

Postby cynwulf » May 25th, 2018, 10:54 pm

Mentioning synaptic back in the day on the old forums, was pretty much taboo. In terms of the scathing responses, it was buttock clenching stuff...

I never really found a use for it, after getting to grips with apt-get and aptitude. I suppose I was lucky to get into those early on.

Mentioning "software-center" or whatever it was called, would land you in even hotter water - though that was indeed utter shite.
cynwulf
 
Posts: 2548
Joined: April 26th, 2011, 2:46 pm

Re: Apt or Aptitude Confusion

Postby golinux » May 26th, 2018, 4:40 am

cynwulf wrote:Mentioning "software-center" or whatever it was called, would land you in even hotter water - though that was indeed utter shite.

There's a software center?
May the FORK be with you!
User avatar
golinux
 
Posts: 1117
Joined: July 23rd, 2011, 4:45 pm
Location: not a 'buntard!

Re: Apt or Aptitude Confusion

Postby arochester » May 26th, 2018, 9:13 am

@golinux

There's a software center?


App called gnome-software

It says
Software lets you install and update applications and system extensions.

Software uses a plugin architecture to separate the frontend from the
technologies that are used underneath. Currently, a PackageKit plugin provides
data from a number of traditional packaging systems, such as rpm or apt. An
appdata plugin provides additional metadata from locally installed data in the
appdata format.
arochester
 
Posts: 18
Joined: July 11th, 2012, 6:57 pm

Re: Apt or Aptitude Confusion

Postby golinux » May 26th, 2018, 2:54 pm

golinux wrote:There's a software center?

FWIW, that non-question was a statement dripping with sarcasm . . . ;)
May the FORK be with you!
User avatar
golinux
 
Posts: 1117
Joined: July 23rd, 2011, 4:45 pm
Location: not a 'buntard!

Re: Apt or Aptitude Confusion

Postby Randicus Draco Albus » May 26th, 2018, 11:47 pm

To add to the sarcasm, I do not trust software that spells centre incorrectly. :mrgreen:
Klingons are fun, but Romulans are the sexiest women in the galaxy.
User avatar
Randicus Draco Albus
 
Posts: 1497
Joined: September 22nd, 2011, 1:22 pm

Re: Apt or Aptitude Confusion

Postby cynwulf » June 1st, 2018, 11:31 am

"software-center" is a thing of the past I believe? It was a 'buntu thing. It actually made it into Debian wheezy as I recall and then there was a ridiculous thread at the other forum where someone was whinging that it had the word "ubuntu" displaying somewhere... Many pages of drama, etc.
cynwulf
 
Posts: 2548
Joined: April 26th, 2011, 2:46 pm


Return to General Questions

Who is online

Users browsing this forum: Google [Bot] and 1 guest

cron

x