Why installing openjdk-7-jdk on Ubuntu Trusty installs systemd as well?

Liam Proven lproven at gmail.com
Tue Jan 3 22:17:59 UTC 2017


On 30 December 2016 at 13:24, Yuri Kanivetsky <yuri.kanivetsky at gmail.com> wrote:
>
> I tried both apt and aptitude. But I can't see systemd in the output
> of neither debtree (debtree openjdk-7-jdk), nor apt-rdepends
> (apt-rdepends openjdk-7-jdk). Am I to add any switches to the
> commands?
>
> The bigger picture is that I'm provisioning a server with ansible. I
> need it to install elasticsearch, which depends on java. Which brings
> systemd with itself. After which ansible fails to enable
> elasticsearch. Since it sees systemctl and tries to enable
> eslasticsearch with systemctl. But elasticsearch doesn't come with
> systemd unit file. It comes with init script.
>
> Does openjdk-7-jdk really depends on systemd? Is there a way to avoid
> installing systemd?


You don't specify what version of Ubuntu but 16.04 and later already
include systemd as standard.

You may just be getting an update.

Also, Java 7 is old now -- it dates back to 2011. Java 8 has been out
since early 2014 and this year Java 9 is due.

-- 
Liam Proven • Profile: https://about.me/liamproven
Email: lproven at cix.co.uk • Google Mail/Talk/Plus: lproven at gmail.com
Twitter/Facebook/Flickr: lproven • Skype/LinkedIn/AIM/Yahoo: liamproven
UK: +44 7939-087884 • ČR/WhatsApp/Telegram/Signal: +420 702 829 053




More information about the ubuntu-users mailing list