Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

[SOLVED] Install adoptopenjdk

New to Debian (Or Linux in general)? Ask your questions here!
Post Reply
Message
Author
Chrisdb
Posts: 279
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
Emeritus
Emeritus
Posts: 2435
Joined: 2010-12-07 19:55
Has thanked: 14 times
Been thanked: 54 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: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

Re: Install adoptopenjdk

#3 Post by Head_on_a_Stick »

deadbang

Chrisdb
Posts: 279
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: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

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
deadbang

Chrisdb
Posts: 279
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