# Is aptitude really needed?

**URL:** <https://forum.ansible.com/t/is-aptitude-really-needed/16598>\
**Category:** Ansible Project\
**Created:** [October 24, 2014, 2:29pm UTC](https://forum.ansible.com/t/is-aptitude-really-needed/16598 "2014-10-24T14:29:10Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Goran\_Juric](https://avatars.discourse-cdn.com/v4/letter/g/5e9695/32.png) [@Goran\_Juric](https://forum.ansible.com/u/Goran_Juric)\
**Post date:** [October 24, 2014, 2:29pm UTC](https://forum.ansible.com/t/is-aptitude-really-needed/16598/1 "2014-10-24T14:29:10Z")

</div>

I am running multiple services on lean (minimal) containers on Debian and aptitude package needs to be installed on the target system if you want to run:

“apt: upgrade=full” command

Is there a command that does the same but uses apt-get instead?

Installing aptitude pulls in a bunch of dependencies and I would like to avoid that if possible.

Regards,

Goran Juric

---

<div class="post-metadata">

**Author:** ![Serge\_van\_Ginderacht](https://avatars.discourse-cdn.com/v4/letter/s/b782af/32.png) [@Serge\_van\_Ginderacht](https://forum.ansible.com/u/Serge_van_Ginderacht)\
**Post date:** [October 24, 2014, 5:12pm UTC](https://forum.ansible.com/t/is-aptitude-really-needed/16598/2 "2014-10-24T17:12:58Z")

</div>

> I am running multiple services on lean (minimal) containers on Debian and  
> aptitude package needs to be installed on the target system if you want to  
> run:
> 
> &nbsp;&nbsp;&nbsp;&nbsp;"apt: upgrade=full" command
> 
> Is there a command that does the same but uses apt-get instead?

​Right now, the ansible apt module doesn't give you that choice, no.​

> Installing aptitude pulls in a bunch of dependencies and I would like to  
> avoid that if possible.

​This is actually a good question. Even as a longtime Debian/Ubuntu user, I  
still find it confusing to choose between apt-get and aptitude​.  
So far, the ansible module doesn't give an admin the choice here, which he  
would have been accustomed (or not) to have when doing things manually.

Perhaps this should be revisited, and let the module e.g. use at-get by  
default, and aptitude as an option?  
Also, keep in mind that some functionalities (updating sources I believe)  
are not done by cli directly, but by a python library.

Thoughts, fellow more-expert-Debian users?

&nbsp;&nbsp;Serge

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan1](https://avatars.discourse-cdn.com/v4/letter/m/5e9695/32.png) [@Michael\_DeHaan1](https://forum.ansible.com/u/Michael_DeHaan1)\
**Post date:** [October 24, 2014, 5:46pm UTC](https://forum.ansible.com/t/is-aptitude-really-needed/16598/3 "2014-10-24T17:46:05Z")

</div>

I came from running Debian a long time ago, and have been an apt-get user for a long time.

Aptitude support came in with a patch for upgrade modes, as is noted below. If these can be done without aptitude cleanly,  
I am quite open to it, unless other longtime Ubuntu/Debian folks have suggestions as to why we should not.

| 
- Three of the upgrade modes (C(full), C(safe) and its alias C(yes)) require C(aptitude), otherwise

 |
| | 

C(apt-get) suffices.

 |

---

<div class="post-metadata">

**Author:** ![Michael\_Wozniak](https://avatars.discourse-cdn.com/v4/letter/m/f1d935/32.png) [@Michael\_Wozniak](https://forum.ansible.com/u/Michael_Wozniak)\
**Post date:** [October 27, 2014, 8:07pm UTC](https://forum.ansible.com/t/is-aptitude-really-needed/16598/4 "2014-10-27T20:07:23Z")

</div>

I usually use “dist” which does “dist-upgrade” which works for me without aptitude.

I think dist-upgrade makes more sense anyway.

I found this online describing the difference:

From the man-page:

“upgrade is used to install the newest versions of all packages currently installed on the system  
…  
dist-upgrade, in addition to performing the function of upgrade, also intelligently handles changing dependencies with new versions of packages”

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan1](https://avatars.discourse-cdn.com/v4/letter/m/5e9695/32.png) [@Michael\_DeHaan1](https://forum.ansible.com/u/Michael_DeHaan1)\
**Post date:** [October 30, 2014, 5:57pm UTC](https://forum.ansible.com/t/is-aptitude-really-needed/16598/5 "2014-10-30T17:57:25Z")

</div>

I’m open to changes assuming that’s installed by default on Debian and Ubuntu and most variants…
