Need for aptitude to perform apt upgrades?

38 views
Skip to first unread message

Phyks

unread,
Jun 25, 2015, 10:25:56 AM6/25/15
to ansible...@googlegroups.com
Hi,

It seems that aptitude is needed by the apt module to handle apt
upgrades. Is there any way to cut this dependency?

Thanks
--
Phyks

Brian Coca

unread,
Jun 26, 2015, 12:40:48 PM6/26/15
to ansible...@googlegroups.com
I would be open to a patch for the module to use an alternative if it
is not present.


--
Brian Coca

Phyks

unread,
Jun 27, 2015, 4:24:07 PM6/27/15
to ansible...@googlegroups.com
There is no strict alternative in apt. The closest would be `apt-get
upgrade` which does not install or remove dependencies. See
https://askubuntu.com/questions/117088/aptitude-safe-upgrade-equivalence-with-apt-get.

But there is also this bug which may be annoying
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=146207 (see also
http://www.boxever.com/controlling-os-upgrades-with-ansible).

I am not sure what the correct and expected behaviour would be. I think
it not obvious that an apt module requires aptitude (and I did not see
it in the documentation, but this may be my fault) but on the other
hand, I am not sure what the expected default behaviour of upgrade
should be.
--
Phyks
> --
> You received this message because you are subscribed to the Google Groups "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
> To post to this group, send email to ansible...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAJ5XC8nM8%3Dh_qjvSwcxtF0xMfPyjQKyWatHa2n3DK1hEN7ZS0w%40mail.gmail.com.
> For more options, visit https://groups.google.com/d/optout.
>

Brian Coca

unread,
Jun 30, 2015, 8:03:15 AM6/30/15
to ansible...@googlegroups.com
aptitude is listed in the module requirements, I understand the
puzzlement for those that are used to using apt directly, but this was
added as aptitude added a convenient way to add some features and is
generally present in most .deb distros.


--
Brian Coca
Reply all
Reply to author
Forward
0 new messages