I would like to use aptitude since its parameters are more consistent.
You can install it with: sudo apt-get install aptitude
Are there any reasons not to use it with elementary OS?
elementary OS Stack Exchange is a question and answer site for developers and users of elementary OS and applications. It only takes a minute to sign up.
Sign up to join this communityYes you can.
What are the differences?
aptitude
adds explicit per-package flags, indicating whether a package was automatically installed to satisfy a dependency: you can manipulate those flags (aptitude markauto
oraptitude unmarkauto
) to change the way aptitude treats the package.
apt-get
keeps track of the same information, but will not show it explicitly.apt-mark
can be used for manipulating the flags.
aptitude
will offer to remove unused packages each time you remove an installed package, whereas apt-get will only do that if explicitly asked to withapt-get autoremove
or specify--auto-remove
.
aptitude
acts as a single command-line front-end to most of the functionalities in bothapt-get
andapt-cache
.In contrast to
apt-cache
's "search", aptitude's "search" output also shows the installed/removed/purged status of a package (plus aptitude's own status flags). Also, the "install" output marks which packages are being installed to satisfy a dependency, and which are being removed because unused.
So there are a few differences between apt-get
and aptitude
. Because of this, it is recommended to chose one and stick with it. I've always used apt-get - partly because that's what the internet uses.
aptitude
is supposed to be a user level program whereasapt-get
is supposed to be used by higher level programs likeaptitude
. It just turns outapt-get
is easy to use by users so they just use it instead of using the higher level managers likeaptitude
andsynaptic
.
Why is it easier? I'd say because it doesn't do as much. It's like the difference between a clean UI and a cluttered UI:
New users are much more likely to want to use this UI ▲ because it's easier to understand and navigate.
The command line is scary enough when you come from Windows or OS X - the lack of being able to download everything by clicking (which you can (other than ppa
s), but oh so slow) is worrying to a new user.
So anything that makes that experience better is going to make them happier.
apt-get
does have the advantage of being more memory-efficient. This is unlikely to be noticeable for most users; I wasn't really aware of it until I tried to upgrade packages on a full Debian install with 32MB of RAM.
Currently, Ubuntu ships with apt-get
, and aptitude
avaliable to install. Popularity for aptitude
(red has always been lower than apt
(blue):
But this graph for aptitude
vs apt-get
suggests something else:
Probably just users are getting lazier and not typing -get
.
Anyway, back to your question: "Are there any reasons not to use it with elementary OS?"
Not really - pick one and go with it. apt-get
is the future standard, but as long as aptitude
is avaliable why not use it?
Finally, one more article:
Canonical has announced plans to switch all versions of Ubuntu to its new Snappy package manager. The new tool offers the promise of greater stability and security for the system and applications.
Currently, Ubuntu uses the Advanced Packaging Tool (
apt
) and the lower-leveldpkg
tool to manage packages. They are inherited from Debian and are used on a wide range of distros, including Elementary OS.
apt-get
has also supported these flags for far longer than elementary has existed, so they aren't an issue.
Jul 1, 2015 at 21:38
aptitude
but on one occasion I was very impressed by it, as it was the way to solving a very tricky problem when Wine couldn't be installed. Has apt-get
such detailed options as the one used there (sudo aptitude --full-resolver -f install <packagename>
)?
apt-get
is considered the future standard on Ubuntu and eOS and thus the recommended option to choose.