[SOLVED] Install adoptopenjdk

New to Debian (Or Linux in general)? Ask your questions here!

[SOLVED] Install adoptopenjdk

Postby Chrisdb » 2020-01-10 09:54

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.
Chrisdb
 
Posts: 221
Joined: 2018-04-10 07:16

Re: Install adoptopenjdk

Postby arochester » 2020-01-10 14:14

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.
arochester
 
Posts: 1609
Joined: 2010-12-07 19:55


Re: Install adoptopenjdk

Postby Chrisdb » 2020-01-11 21:48

Head_on_a_Stick wrote:https://wiki.debian.org/CreatePackageFromPPA


Seems great, just wondering why there's no mention of the build dependencies. Are they handled automatically by the --build option?
Chrisdb
 
Posts: 221
Joined: 2018-04-10 07:16

Re: Install adoptopenjdk

Postby Head_on_a_Stick » 2020-01-12 09:51

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
User avatar
Head_on_a_Stick
 
Posts: 11116
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Install adoptopenjdk

Postby Chrisdb » 2020-01-13 09:23

ok, so basically the same as a simple backport

Thx again HoaS!
Chrisdb
 
Posts: 221
Joined: 2018-04-10 07:16


Return to Beginners Questions

Who is online

Users browsing this forum: No registered users and 10 guests

fashionable