[SOLVED] Install adoptopenjdk

New to Debian (Or Linux in general)? Ask your questions here!
Post Reply
Message
Author
Chrisdb
Posts: 273
Joined: 2018-04-10 07:16

[SOLVED] Install adoptopenjdk

#1 Post by Chrisdb »

Hello,

I would like to install adoptopenjdk, but according to the site the recommended way is to add a ppa, even for Debian.

I know this is not the way for Debian to install a package, but what are the alternatives then? Or is it best to create a deb myself?

Thx
Last edited by Chrisdb on 2020-01-13 09:24, edited 1 time in total.

arochester
Global Moderator
Global Moderator
Posts: 2062
Joined: 2010-12-07 19:55
Has thanked: 1 time
Been thanked: 3 times

Re: Install adoptopenjdk

#2 Post by arochester »

Received wisdom from "Don't Break Debian" is that new users should not use Ubuntu packages and PPAs to create a Frankendebian https://wiki.debian.org/DontBreakDebian

If you go down this route you should properly backup and be prepared for things to break.

Another method (still not recommended) is to use the adoptopenjdk repository. https://medium.com/adoptopenjdk/adoptop ... 03ba38144e

Again, properly backup and be prepared for things to break.

User avatar
Head_on_a_Stick
Posts: 13446
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Install adoptopenjdk

#3 Post by Head_on_a_Stick »

Black Lives Matter

Debian buster-backports ISO image: for new hardware support

Chrisdb
Posts: 273
Joined: 2018-04-10 07:16

Re: Install adoptopenjdk

#4 Post by Chrisdb »

Seems great, just wondering why there's no mention of the build dependencies. Are they handled automatically by the --build option?

User avatar
Head_on_a_Stick
Posts: 13446
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Install adoptopenjdk

#5 Post by Head_on_a_Stick »

Chrisdb wrote:build dependencies
Install the devscripts package then run apt source (without the --build option), change into the source directory and run

Code: Select all

# mk-build-deps --install --remove
Then build the package:

Code: Select all

debuild -us -uc -jauto
Once it's built you can remove the build dependencies with

Code: Select all

# aptitude purge adoptopenjdk-build-deps
Black Lives Matter

Debian buster-backports ISO image: for new hardware support

Chrisdb
Posts: 273
Joined: 2018-04-10 07:16

Re: Install adoptopenjdk

#6 Post by Chrisdb »

ok, so basically the same as a simple backport

Thx again HoaS!

Post Reply